Skip to content

Commit

Permalink
upadated the main() to leverage the new storage info features
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethdsheridan committed Nov 7, 2024
1 parent 5bbf7bd commit 99ca9c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,11 @@ fn main() -> Result<(), Box<dyn Error>> {
server_info.hardware.memory.speed
);

println!(
"Storage: {} (Total: {:.2} TB)",
server_info.summary.total_storage, server_info.summary.total_storage_tb
);

// Calculate total storage
let total_storage = server_info
.hardware
Expand Down

0 comments on commit 99ca9c9

Please sign in to comment.