@cryptotaxi247 / netdata-1 / commits / 80b50a9ff

fixed update frequency of diskspace stats

Costa Tsaousis (ktsaou) committed Jan 14, 2017 at 16:08 UTC 80b50a9ff8c2162713c7996c57bb04d7ffaf3e38
1 file changed +1 -4
src/plugin_proc_diskspace.c
+1 -4
@@ -25,7 +25,6 @@ static inline void mountinfo_reload(int force) {
25 struct mount_point_metadata {
26 int do_space;
27 int do_inodes;
28 - int update_every;
28 };
29
30 static inline void do_disk_space_stats(struct mountinfo *mi, int update_every) {
@@ -71,8 +70,7 @@ static inline void do_disk_space_stats(struct mountinfo *mi, int update_every) {
70
71 struct mount_point_metadata mp = {
72 .do_space = do_space,
74 - .do_inodes = do_inodes,
75 - .update_every = rrd_update_every
73 + .do_inodes = do_inodes
74 };
75
76 dictionary_set(mount_points, mi->mount_point, &mp, sizeof(struct mount_point_metadata));
@@ -80,7 +78,6 @@ static inline void do_disk_space_stats(struct mountinfo *mi, int update_every) {
78 else {
79 do_space = m->do_space;
80 do_inodes = m->do_inodes;
83 - update_every = m->update_every;
81 }
82
83 if(unlikely(do_space == CONFIG_ONDEMAND_NO && do_inodes == CONFIG_ONDEMAND_NO))