]> arthur.barton.de Git - netdata.git/commitdiff
Merge pull request #1479 from vlvkobal/master
authorCosta Tsaousis <costa@tsaousis.gr>
Sat, 31 Dec 2016 01:02:07 +0000 (03:02 +0200)
committerGitHub <noreply@github.com>
Sat, 31 Dec 2016 01:02:07 +0000 (03:02 +0200)
Extend displayed disk types on FreeBSD

src/freebsd_sysctl.c

index a4169ba2252dbdecc7514383091bb532d1ada516..c0ff137d4d10296675e7fe5f273d8adfe36cc5d3 100644 (file)
@@ -516,7 +516,7 @@ int do_freebsd_sysctl(int update_every, usec_t dt) {
                 collected_number total_disk_writes = 0;
 
                 for (i = 0; i < numdevs; i++) {
-                    if ((dstat[i].device_type == (DEVSTAT_TYPE_IF_SCSI | DEVSTAT_TYPE_DIRECT)) || (dstat[i].device_type == (DEVSTAT_TYPE_IF_IDE | DEVSTAT_TYPE_DIRECT))) {
+                    if (((dstat[i].device_type & DEVSTAT_TYPE_MASK) == DEVSTAT_TYPE_DIRECT) || ((dstat[i].device_type & DEVSTAT_TYPE_MASK) == DEVSTAT_TYPE_STORARRAY)) {
 
                         // --------------------------------------------------------------------