add aix disk time

This commit is contained in:
Doug MacEachern 2007-10-11 06:33:55 +00:00
parent e2fdcb794c
commit acaab9cadb
1 changed files with 6 additions and 0 deletions

View File

@ -1688,6 +1688,9 @@ static int get_perfstat_disk_metrics(sigar_t *sigar,
fsusage->disk_read_bytes = disk.rblks * disk.bsize; fsusage->disk_read_bytes = disk.rblks * disk.bsize;
fsusage->disk_write_bytes = disk.wblks * disk.bsize; fsusage->disk_write_bytes = disk.wblks * disk.bsize;
fsusage->disk_queue = disk.qdepth; fsusage->disk_queue = disk.qdepth;
fsusage->disk_time = disk.time;
fsusage->disk_rtime = SIGAR_FIELD_NOTIMPL;
fsusage->disk_wtime = SIGAR_FIELD_NOTIMPL;
return SIGAR_OK; return SIGAR_OK;
} }
@ -1699,6 +1702,9 @@ static void set_disk_metrics(struct dkstat *dkstat,
fsusage->disk_writes = dkstat->dk_wblks; fsusage->disk_writes = dkstat->dk_wblks;
fsusage->disk_read_bytes = dkstat->dk_rblks * dkstat->dk_bsize; fsusage->disk_read_bytes = dkstat->dk_rblks * dkstat->dk_bsize;
fsusage->disk_write_bytes = dkstat->dk_wblks * dkstat->dk_bsize; fsusage->disk_write_bytes = dkstat->dk_wblks * dkstat->dk_bsize;
fsusage->disk_time = dkstat->dk_time;
fsusage->disk_rtime = SIGAR_FIELD_NOTIMPL;
fsusage->disk_wtime = SIGAR_FIELD_NOTIMPL;
if (dkstat->dk_qd_magic == dk_q_depth_magic) { if (dkstat->dk_qd_magic == dk_q_depth_magic) {
fsusage->disk_queue = dkstat->dk_q_depth; fsusage->disk_queue = dkstat->dk_q_depth;
} }