Skip to content

Commit

Permalink
upadated the generate_summary() to reflect the additional total_stora…
Browse files Browse the repository at this point in the history
…ge_tb field
  • Loading branch information
kennethdsheridan committed Nov 7, 2024
1 parent 9207ba6 commit 5bbf7bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -814,9 +814,12 @@ impl ServerInfo {
if cpu_topology.numa_nodes > 1 { "s" } else { "" }
);

let total_storage_tb = Self::calculate_total_storage_tb(&hardware.storage)?;

Ok(SystemSummary {
total_memory: hardware.memory.total.clone(),
memory_config: format!("{} @ {}", hardware.memory.type_, hardware.memory.speed),
total_storage_tb,
total_storage: Self::calculate_total_storage(&hardware.storage)?,
filesystems: Self::get_filesystems().unwrap_or_default(),
bios,
Expand Down

0 comments on commit 5bbf7bd

Please sign in to comment.