]> arthur.barton.de Git - netdata.git/commitdiff
always enable disk stats
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 13 Dec 2016 22:12:24 +0000 (00:12 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 13 Dec 2016 22:12:24 +0000 (00:12 +0200)
src/proc_diskstats.c

index 2632e059902d5288eb45583a8ff84ae729f84665..2f3a9689b6b525b1ea9f906b71a8b4d0675891c9 100644 (file)
@@ -473,7 +473,7 @@ int do_proc_diskstats(int update_every, usec_t dt) {
         snprintfz(filename, FILENAME_MAX, "%s%s", global_host_prefix, "/proc/diskstats");
         ff = procfile_open(config_get("plugin:proc:/proc/diskstats", "filename to monitor", filename), " \t", PROCFILE_FLAG_DEFAULT);
     }
-    if(unlikely(!ff)) return 1;
+    if(unlikely(!ff)) return 0;
 
     ff = procfile_readall(ff);
     if(unlikely(!ff)) return 0; // we return 0, so that we will retry to open it next time