Skip to content

Commit

Permalink
tried realigning again
Browse files Browse the repository at this point in the history
  • Loading branch information
hitblast committed Apr 4, 2024
1 parent 05a85df commit 7eb05d2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -157,22 +156,22 @@ 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,
);

// print cpu info
if !cpu.is_empty() || !machine.is_empty() {
println!(" {}
{} {} ({} cores)
{} {}
{} {} ({} cores)
{} {}
",
"~ hardware info ~".bright_blue(),
"cpu".bright_green(), cpu, cpu_cores,
Expand Down

0 comments on commit 7eb05d2

Please sign in to comment.