vmstat: validate numeric user input and allow infinte updates
The vmstat used ULONG_MAX as definition of infinite updates. On a computer with mighty uptime one will find that after 136 years (assuming 1 second update interval) the vmstat exits, which is in conflict with a promise of infinite. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
@@ -68,6 +68,7 @@ skill_SOURCES = skill.c $(top_srcdir)/lib/strutils.c
|
||||
snice_SOURCES = skill.c $(top_srcdir)/lib/strutils.c
|
||||
tload_SOURCES = tload.c $(top_srcdir)/lib/strutils.c
|
||||
pkill_SOURCES = pgrep.c
|
||||
vmstat_SOURCES = vmstat.c $(top_srcdir)/lib/strutils.c
|
||||
|
||||
sysconf_DATA = sysctl.conf
|
||||
|
||||
|
Reference in New Issue
Block a user