]> arthur.barton.de Git - netdata.git/blobdiff - src/proc_net_dev.c
Merge pull request #1672 from ktsaou/master
[netdata.git] / src / proc_net_dev.c
index f37e2fe4abcfc64181b9af7a2626f7e8a73246d2..21f78dd17034e5f2d2efb8c6dcfe47fa2c6a3e27 100644 (file)
@@ -111,7 +111,6 @@ static struct netdev *get_netdev(const char *name) {
 
 int do_proc_net_dev(int update_every, usec_t dt) {
     (void)dt;
-
     static SIMPLE_PATTERN *disabled_list = NULL;
     static procfile *ff = NULL;
     static int enable_new_interfaces = -1;
@@ -143,7 +142,7 @@ int do_proc_net_dev(int update_every, usec_t dt) {
     ff = procfile_readall(ff);
     if(unlikely(!ff)) return 0; // we return 0, so that we will retry to open it next time
 
-    uint32_t lines = procfile_lines(ff), l;
+    size_t lines = procfile_lines(ff), l;
     for(l = 2; l < lines ;l++) {
         // require 17 words on each line
         if(unlikely(procfile_linewords(ff, l) < 17)) continue;