summaryrefslogtreecommitdiffstats
path: root/examples/system_information/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/system_information/src/main.rs')
-rw-r--r--examples/system_information/src/main.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/system_information/src/main.rs b/examples/system_information/src/main.rs
index f8ae1aaf..95f57ac0 100644
--- a/examples/system_information/src/main.rs
+++ b/examples/system_information/src/main.rs
@@ -91,9 +91,15 @@ impl Application for Example {
.to_string())
));
+ let memory_readable =
+ ByteSize::kb(information.memory_total).to_string();
+
let memory_total = Text::new(format!(
"Memory (total): {}",
- ByteSize::kb(information.memory_total).to_string()
+ format!(
+ "{} kb ({})",
+ information.memory_total, memory_readable
+ )
));
Column::with_children(vec![