From 8dba1d48e27c2627a6dd644135d98391efd5702a Mon Sep 17 00:00:00 2001 From: uidops Date: Tue, 19 Mar 2024 20:34:58 +0330 Subject: [PATCH] update unitconv --- sucktus.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sucktus.c b/sucktus.c index cb05986..3b098e5 100644 --- a/sucktus.c +++ b/sucktus.c @@ -718,13 +718,13 @@ unitconv(char *retmsg, size_t len, uint64_t bps) else if (ndigits - 6 < 0) snprintf(retmsg, len, "%.1f KB/s | ", bps/1E3); else if (ndigits - 9 < 0) - snprintf(retmsg, len, "%1.f MB/s | ", bps/1E6); + snprintf(retmsg, len, "%.1f MB/s | ", bps/1E6); else if (ndigits - 9 < 0) - snprintf(retmsg, len, "%1.f GB/s | ", bps/1E9); + snprintf(retmsg, len, "%.1f GB/s | ", bps/1E9); else if (ndigits - 9 < 0) - snprintf(retmsg, len, "%1.f TB/s | ", bps/1E12); + snprintf(retmsg, len, "%.1f TB/s | ", bps/1E12); else - snprintf(retmsg, len, "%1.f PB/s | ", bps/1E15); + snprintf(retmsg, len, "%.1f PB/s | ", bps/1E15); return retmsg; }