From 7eb05d2203ffca69e082651737f93a2016b1ecd3 Mon Sep 17 00:00:00 2001 From: HitBlast Date: Thu, 4 Apr 2024 06:32:43 +0000 Subject: [PATCH] tried realigning again --- src/main.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index f35873f..7fdfd52 100644 --- a/src/main.rs +++ b/src/main.rs @@ -94,7 +94,6 @@ fn main() { let cpu_cores = general_readout.cpu_cores().unwrap_or_default(); let total_ram = memory_readout.total().unwrap_or_default() / 1024; let used_ram = memory_readout.used().unwrap_or_default() / 1024; - let cached_ram = memory_readout.cached().unwrap_or_default() / 1024; let machine = general_readout.machine().unwrap_or_default(); // battery information @@ -157,13 +156,13 @@ fn main() { {} {} {} {} [{}] {} {} - {} {} / {} MB ({} MB cached) + {} {} / {} MB {} {} ", "~ system info ~".bright_blue(), "user".bright_yellow(), username, "os".bright_purple(), os, distro.bright_yellow(), "up".bright_red(), uptime, - "ram".bright_yellow(), used_ram, total_ram, cached_ram, + "ram".bright_yellow(), used_ram, total_ram, "bat".bright_green(), _battery_text, ); @@ -171,8 +170,8 @@ fn main() { if !cpu.is_empty() || !machine.is_empty() { println!(" {} - {} {} ({} cores) - {} {} + {} {} ({} cores) + {} {} ", "~ hardware info ~".bright_blue(), "cpu".bright_green(), cpu, cpu_cores,