summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/print_disk_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_disk_info.c b/src/print_disk_info.c
index 11111db..3bd2bf8 100644
--- a/src/print_disk_info.c
+++ b/src/print_disk_info.c
@@ -20,7 +20,7 @@
*/
static void print_bytes_human(uint64_t bytes) {
if (bytes > TERABYTE)
- printf("%f TB", (double)bytes / TERABYTE);
+ printf("%.02f TB", (double)bytes / TERABYTE);
else if (bytes > GIGABYTE)
printf("%.01f GB", (double)bytes / GIGABYTE);
else if (bytes > MEGABYTE)