re-org sigar_disk_usage_t struct
This commit is contained in:
parent
0de44bdfbd
commit
fe43d98e10
|
@ -644,11 +644,11 @@ int sigar_file_system_usage_get(sigar_t *sigar,
|
||||||
retval = pstat_getlv(&lv, sizeof(lv), 0, (int)devsb.st_rdev);
|
retval = pstat_getlv(&lv, sizeof(lv), 0, (int)devsb.st_rdev);
|
||||||
|
|
||||||
if (retval == 1) {
|
if (retval == 1) {
|
||||||
fsusage->disk_reads = lv.psl_rxfer;
|
fsusage->disk.reads = lv.psl_rxfer;
|
||||||
fsusage->disk_writes = lv.psl_wxfer;
|
fsusage->disk.writes = lv.psl_wxfer;
|
||||||
fsusage->disk_read_bytes = lv.psl_rcount;
|
fsusage->disk.read_bytes = lv.psl_rcount;
|
||||||
fsusage->disk_write_bytes = lv.psl_wcount;
|
fsusage->disk.write_bytes = lv.psl_wcount;
|
||||||
fsusage->disk_queue = SIGAR_FIELD_NOTIMPL;
|
fsusage->disk.queue = SIGAR_FIELD_NOTIMPL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue