commit | 4b50f1ac30f3215934a4b1eb57a46367f4826ba0 | [log] [tgz] |
---|---|---|
author | Robert Swiecki <robert@swiecki.net> | Sat Oct 22 19:38:30 2016 +0200 |
committer | Robert Swiecki <robert@swiecki.net> | Sat Oct 22 19:38:30 2016 +0200 |
tree | 76a2af1bcaff07be1829d3af694cb29811018c3e | |
parent | 216fef6c2b6272446a22e11082b77a0428b1df22 [diff] [blame] |
display: divide by billion for G
diff --git a/display.c b/display.c index ea1b95f..0f77efe 100644 --- a/display.c +++ b/display.c
@@ -60,7 +60,7 @@ static void display_printKMG(uint64_t val) { if (val >= 1000000000UL) { - display_put(" [%.2lfG]", (double)val / 1000000.0); + display_put(" [%.2lfG]", (double)val / 1000000000.0); } else if (val >= 1000000UL) { display_put(" [%.2lfM]", (double)val / 1000000.0); } else if (val >= 1000UL) {