Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 7eb05d2

Browse files
committed
tried realigning again
1 parent 05a85df commit 7eb05d2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/main.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ fn main() {
9494
let cpu_cores = general_readout.cpu_cores().unwrap_or_default();
9595
let total_ram = memory_readout.total().unwrap_or_default() / 1024;
9696
let used_ram = memory_readout.used().unwrap_or_default() / 1024;
97-
let cached_ram = memory_readout.cached().unwrap_or_default() / 1024;
9897
let machine = general_readout.machine().unwrap_or_default();
9998

10099
// battery information
@@ -157,22 +156,22 @@ fn main() {
157156
{} {}
158157
{} {} [{}]
159158
{} {}
160-
{} {} / {} MB ({} MB cached)
159+
{} {} / {} MB
161160
{} {}
162161
", "~ system info ~".bright_blue(),
163162
"user".bright_yellow(), username,
164163
"os".bright_purple(), os, distro.bright_yellow(),
165164
"up".bright_red(), uptime,
166-
"ram".bright_yellow(), used_ram, total_ram, cached_ram,
165+
"ram".bright_yellow(), used_ram, total_ram,
167166
"bat".bright_green(), _battery_text,
168167
);
169168

170169
// print cpu info
171170
if !cpu.is_empty() || !machine.is_empty() {
172171
println!(" {}
173172
174-
{} {} ({} cores)
175-
{} {}
173+
{} {} ({} cores)
174+
{} {}
176175
",
177176
"~ hardware info ~".bright_blue(),
178177
"cpu".bright_green(), cpu, cpu_cores,

0 commit comments

Comments
 (0)