diff --git a/src/main.cpp b/src/main.cpp index f14c3a4..6892996 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -157,7 +157,7 @@ int main(int argc, char **argv) { sortRecv = false; break; case 'd': - refreshdelay = atoi(optarg); + refreshdelay = (time_t) atoi(optarg); break; case 'v': viewMode = atoi(optarg) % VIEWMODE_COUNT; diff --git a/src/nethogs.cpp b/src/nethogs.cpp index 7abea29..d128ad4 100644 --- a/src/nethogs.cpp +++ b/src/nethogs.cpp @@ -51,7 +51,7 @@ extern "C" { extern Process *unknownudp; -unsigned refreshdelay = 1; +time_t refreshdelay = 1; unsigned refreshlimit = 0; unsigned refreshcount = 0; unsigned processlimit = 0;