summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml1
-rw-r--r--src/commands/endpoint.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index b449064..8ca0c75 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,6 +15,7 @@ anyhow = "1"
aquamarine = "0.1.6"
ascii_table = ">= 3.0.2"
atty = "0.2"
+bytesize = "1"
chrono = "0.4"
clap = "3.0.0-beta.2"
clap_generate = "3.0.0-beta.2"
diff --git a/src/commands/endpoint.rs b/src/commands/endpoint.rs
index 128613a..41dae04 100644
--- a/src/commands/endpoint.rs
+++ b/src/commands/endpoint.rs
@@ -183,7 +183,7 @@ async fn stats(endpoint_names: Vec<String>,
stat.containers.to_string(),
stat.images.to_string(),
stat.kernel_version,
- stat.mem_total.to_string(),
+ bytesize::ByteSize::b(stat.mem_total).to_string(),
stat.memory_limit.to_string(),
stat.n_cpu.to_string(),
stat.operating_system.to_string(),