disk io on aix

This commit is contained in:
nira11 2013-08-18 11:45:47 +00:00
parent 64f32dd125
commit 6508b09304
1 changed files with 13 additions and 1 deletions

View File

@ -757,7 +757,19 @@ int sigar_proc_mem_get(sigar_t *sigar, sigar_pid_t pid,
int sigar_proc_disk_io_get(sigar_t *sigar, sigar_pid_t pid,
sigar_proc_disk_io_t *proc_disk_io)
{
return SIGAR_ENOTIMPL;
int status = sigar_getprocs(sigar, pid);
struct procsinfo64 *pinfo = sigar->pinfo;
if (status != SIGAR_OK) {
return status;
}
proc_disk_io->bytes_read = 0;
proc_disk_io->bytes_written = 0;
proc_disk_io->bytes_total = pinfo->pi_ioch;
return SIGAR_OK;
}