From b27fb233e42b8273d3c3f7d81ec66c6b9e3db9d4 Mon Sep 17 00:00:00 2001 From: anomen Date: Sun, 1 Jan 2017 21:21:56 +0100 Subject: [PATCH] fix compiler warning - type of refreshdelay --- src/main.cpp | 2 +- src/nethogs.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;