X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/3f45a5f7caf37ec04bbc3aea5e7def1452d1118c..aa8654795da19a8d517faf1b84cd4dc4ac75f6e7:/components/netspeeds.c 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 @@ -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