procps/src
Qin Fandong 0a5ccbdd42 vmstat: precision issues in unitConvert()
Fix conversion errors due to precision issues in function unitConvert

For example: unitConvert(98720620) will return 98720624, not 98720620.

Because we do (unsigned long)(float)98720620 in function unitConvert
and this is wrong! We should do (unsigned long)(double)98720620 here.

Signed-off-by: Craig Small <csmall@dropbear.xyz>

References:
 procps-ng/procps!75
2023-01-18 17:02:53 +11:00
..
ps ps: Correct BSD c option 2022-12-19 16:50:12 +11:00
tests build-sys: Relocate lib/ 2022-08-29 20:28:03 +10:00
top top: include the '5' toggle on the primary help screen 2023-01-15 15:02:39 +11:00
free.c free: --si changes base of default output 2022-09-28 07:57:03 +00:00
kill.c misc: Move all binaries to src 2022-08-29 18:29:28 +10:00
pgrep.c pgrep: Support matching on the presence of a userspace signal handler 2023-01-15 04:05:40 +00:00
pidof.c build-sys: Relocate library to library/ 2022-08-29 19:02:44 +10:00
pmap.c build-sys: Relocate library to library/ 2022-08-29 19:02:44 +10:00
pwdx.c misc: Move all binaries to src 2022-08-29 18:29:28 +10:00
skill.c skill: Restore the -p flag functionality 2022-12-12 16:46:36 +11:00
slabtop.c build-sys: Relocate library to library/ 2022-08-29 19:02:44 +10:00
sysctl.c misc: Move all binaries to src 2022-08-29 18:29:28 +10:00
tload.c build-sys: Relocate library to library/ 2022-08-29 19:02:44 +10:00
uptime.c build-sys: Relocate library to library/ 2022-08-29 19:02:44 +10:00
vmstat.c vmstat: precision issues in unitConvert() 2023-01-18 17:02:53 +11:00
w.c w: add --pids option to display the pid of the login and best processes. 2023-01-15 04:15:32 +00:00
watch.c watch: Fix buggy line-deletion behaviour with --no-linewrap 2023-01-18 16:46:52 +11:00