meminfo-writer: simple command line sanity checks
This commit is contained in:
parent
0c718b7f54
commit
1a72505d24
@ -111,7 +111,7 @@ int main(int argc, char **argv)
|
|||||||
usage();
|
usage();
|
||||||
used_mem_change_threshold = atoi(argv[1]);
|
used_mem_change_threshold = atoi(argv[1]);
|
||||||
delay = atoi(argv[2]);
|
delay = atoi(argv[2]);
|
||||||
if (!used_mem_change_threshold || !delay)
|
if (used_mem_change_threshold <= 0 || delay <= 0)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
if (argc == 4) {
|
if (argc == 4) {
|
||||||
|
Loading…
Reference in New Issue
Block a user