@cryptotaxi247 / netdata-1 / commits / 438246b36

Extend displayed disk types on FreeBSD

Vladimir Kobal committed Dec 31, 2016 at 01:25 UTC 438246b36cf1e14ea80f24f7b07c6d0159a61f51
1 file changed +1 -1
src/freebsd_sysctl.c
+1 -1
@@ -516,7 +516,7 @@ int do_freebsd_sysctl(int update_every, usec_t dt) {
516 collected_number total_disk_writes = 0;
517
518 for (i = 0; i < numdevs; i++) {
519 - if ((dstat[i].device_type == (DEVSTAT_TYPE_IF_SCSI | DEVSTAT_TYPE_DIRECT)) || (dstat[i].device_type == (DEVSTAT_TYPE_IF_IDE | DEVSTAT_TYPE_DIRECT))) {
519 + if (((dstat[i].device_type & DEVSTAT_TYPE_MASK) == DEVSTAT_TYPE_DIRECT) || ((dstat[i].device_type & DEVSTAT_TYPE_MASK) == DEVSTAT_TYPE_STORARRAY)) {
520
521 // --------------------------------------------------------------------
522