summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flowtop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flowtop.c b/flowtop.c
index 53b4f97..9b7e0dc 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -713,7 +713,7 @@ static char *bandw2str(double bytes, char *buf, size_t len)
{
if (bytes > 1000000000.)
snprintf(buf, len, "%.1fG", bytes / 1000000000.);
- if (bytes > 1000000.)
+ else if (bytes > 1000000.)
snprintf(buf, len, "%.1fM", bytes / 1000000.);
else if (bytes > 1000.)
snprintf(buf, len, "%.1fK", bytes / 1000.);