summaryrefslogtreecommitdiff
path: root/components/netspeeds.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/netspeeds.c')
-rw-r--r--components/netspeeds.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/components/netspeeds.c b/components/netspeeds.c
index 14b7799..76557e0 100644
--- a/components/netspeeds.c
+++ b/components/netspeeds.c
@@ -29,8 +29,7 @@
return NULL;
}
- return fmt_human_2((rxbytes - oldrxbytes) *
- 1000 / interval, "B/s");
+ return fmt_human_2((rxbytes - oldrxbytes) * 1000 / interval);
}
const char *
@@ -55,8 +54,7 @@
return NULL;
}
- return fmt_human_2((txbytes - oldtxbytes) *
- 1000 / interval, "B/s");
+ return fmt_human_2((txbytes - oldtxbytes) * 1000 / interval);
}
#elif defined(__OpenBSD__)
#include <string.h>
@@ -97,8 +95,7 @@
return NULL;
}
- return fmt_human_2((rxbytes - oldrxbytes) *
- 1000 / interval, "B/s");
+ return fmt_human_2((rxbytes - oldrxbytes) * 1000 / interval);
}
const char *
@@ -133,7 +130,6 @@
return NULL;
}
- return fmt_human_2((txbytes - oldtxbytes) *
- 1000 / interval, "B/s");
+ return fmt_human_2((txbytes - oldtxbytes) * 1000 / interval);
}
#endif