diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index dd7c64fc..9fcbb807 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -2137,7 +2137,7 @@ int sigar_disk_usage_get(sigar_t *sigar, const char *name, SIGAR_DISK_STATS_INIT(disk); if (!iodev) { - return ESRCH; + return ENXIO; } /* "/dev/disk0s1" -> "disk0" */ /* XXX better way? */