Permalink
Browse files

fix compiler warning - type of refreshdelay

  • Loading branch information...
1 parent ff82eeb commit b27fb233e42b8273d3c3f7d81ec66c6b9e3db9d4 @anomen-s anomen-s committed Jan 1, 2017
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/main.cpp
  2. +1 −1 src/nethogs.cpp
View
@@ -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;
View
@@ -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;

0 comments on commit b27fb23

Please sign in to comment.