always enable disk stats
Costa Tsaousis (ktsaou) committed
Dec 14, 2016 at 00:12 UTC
d2e5ccfa3c59792d67b6356c61dfe094401a17ef
1 file changed
+1
-1
src/proc_diskstats.c
+1
-1
@@ -473,7 +473,7 @@ int do_proc_diskstats(int update_every, usec_t dt) {
473
snprintfz(filename, FILENAME_MAX, "%s%s", global_host_prefix, "/proc/diskstats");
474
ff = procfile_open(config_get("plugin:proc:/proc/diskstats", "filename to monitor", filename), " \t", PROCFILE_FLAG_DEFAULT);
475
}
476
- if(unlikely(!ff)) return 1;
476
+ if(unlikely(!ff)) return 0;
477
478
ff = procfile_readall(ff);
479
if(unlikely(!ff)) return 0; // we return 0, so that we will retry to open it next time