Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Remove units from numbers
[slstatus.git]
/
components
/
netspeeds.c
diff --git
a/components/netspeeds.c
b/components/netspeeds.c
index
14b7799
..
76557e0
100644
(file)
--- a/
components/netspeeds.c
+++ b/
components/netspeeds.c
@@
-29,8
+29,7
@@
return NULL;
}
return NULL;
}
- return fmt_human_2((rxbytes - oldrxbytes) *
- 1000 / interval, "B/s");
+ return fmt_human_2((rxbytes - oldrxbytes) * 1000 / interval);
}
const char *
}
const char *
@@
-55,8
+54,7
@@
return NULL;
}
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>
}
#elif defined(__OpenBSD__)
#include <string.h>
@@
-97,8
+95,7
@@
return NULL;
}
return NULL;
}
- return fmt_human_2((rxbytes - oldrxbytes) *
- 1000 / interval, "B/s");
+ return fmt_human_2((rxbytes - oldrxbytes) * 1000 / interval);
}
const char *
}
const char *
@@
-133,7
+130,6
@@
return NULL;
}
return NULL;
}
- return fmt_human_2((txbytes - oldtxbytes) *
- 1000 / interval, "B/s");
+ return fmt_human_2((txbytes - oldtxbytes) * 1000 / interval);
}
#endif
}
#endif