@cryptotaxi247 / netdata-1 / commits / 29a067a6d

fix disk ids with slashes in them

Costa Tsaousis (ktsaou) committed Mar 25, 2015 at 16:33 UTC 29a067a6d30ecf2acd9de3ee52c8f74610e014ad
1 file changed +4
src/proc_diskstats.c
+4
@@ -66,6 +66,10 @@ int do_proc_diskstats(int update_every, unsigned long long dt) {
66
67 int def_enabled = 0;
68
69 + // remove slashes from disk names
70 + char *s;
71 + for(s = disk; *s ;s++) if(*s == '/') *s = '_';
72 +
73 switch(major) {
74 case 9: // MDs
75 case 43: // network block