stub proc_state.processor
This commit is contained in:
parent
92a33c7caf
commit
ef15aa3434
|
@ -736,6 +736,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
|
|||
procstate->tty = pstat->tty;
|
||||
procstate->priority = pstat->priority;
|
||||
procstate->nice = pstat->nice;
|
||||
procstate->processor = SIGAR_FIELD_NOTIMPL;
|
||||
|
||||
proc_status_get(sigar, pid, procstate);
|
||||
|
||||
|
|
|
@ -215,6 +215,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
|
|||
procstate->tty = -1;
|
||||
procstate->state = 'R';
|
||||
procstate->threads = -1;
|
||||
procstate->processor = -1;
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
|
|
@ -280,6 +280,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
|
|||
procstate->nice = SIGAR_FIELD_NOTIMPL;
|
||||
procstate->tty = info.pi_ttyd;
|
||||
procstate->threads = SIGAR_FIELD_NOTIMPL;
|
||||
procstate->processor = SIGAR_FIELD_NOTIMPL;
|
||||
|
||||
switch (info.pi_status) {
|
||||
case PI_ACTIVE:
|
||||
|
|
|
@ -137,6 +137,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
|
|||
procstate->tty = -1;
|
||||
procstate->state = 'R';
|
||||
procstate->threads = -1;
|
||||
procstate->processor = -1;
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
|
|
@ -949,6 +949,7 @@ SIGAR_DECLARE(int) sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
|
|||
procstate->nice = SIGAR_FIELD_NOTIMPL;
|
||||
procstate->tty = SIGAR_FIELD_NOTIMPL;
|
||||
procstate->threads = pinfo->threads;
|
||||
procstate->processor = SIGAR_FIELD_NOTIMPL;
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue