disk read blue, disk writes red
Costa Tsaousis (ktsaou) committed
Mar 23, 2014 at 18:07 UTC
9eeb63f734d6f99c3f917291cc7c8eda24ff5365
1 file changed
+3
-3
netdata.c
+3
-3
@@ -1482,12 +1482,12 @@ int do_proc_diskstats() {
1482
continue;
1483
}
1484
1485
- if(!rrd_stats_dimension_add(st, "reads", sizeof(unsigned long long), sector_size, 1024))
1486
- error("Cannot add RRD_STATS dimension %s.", "reads");
1487
-
1485
if(!rrd_stats_dimension_add(st, "writes", sizeof(unsigned long long), sector_size, 1024))
1486
error("Cannot add RRD_STATS dimension %s.", "writes");
1487
1488
+ if(!rrd_stats_dimension_add(st, "reads", sizeof(unsigned long long), sector_size, 1024))
1489
+ error("Cannot add RRD_STATS dimension %s.", "reads");
1490
+
1491
}
1492
else rrd_stats_next(st);
1493