mirror of https://github.com/xzeldon/htop.git
htop should report the nice level properly
This commit is contained in:
parent
0750ff7e76
commit
f884beda97
|
@ -323,7 +323,7 @@ int SolarisProcessList_walkproc(psinfo_t *_psinfo, lwpsinfo_t *_lwpsinfo, void *
|
||||||
sproc->poolid = _psinfo->pr_poolid;
|
sproc->poolid = _psinfo->pr_poolid;
|
||||||
sproc->contid = _psinfo->pr_contract;
|
sproc->contid = _psinfo->pr_contract;
|
||||||
proc->priority = _lwpsinfo->pr_pri;
|
proc->priority = _lwpsinfo->pr_pri;
|
||||||
proc->nice = _lwpsinfo->pr_nice;
|
proc->nice = _lwpsinfo->pr_nice - NZERO;
|
||||||
proc->processor = _lwpsinfo->pr_onpro;
|
proc->processor = _lwpsinfo->pr_onpro;
|
||||||
proc->state = _lwpsinfo->pr_sname;
|
proc->state = _lwpsinfo->pr_sname;
|
||||||
// NOTE: This 'percentage' is a 16-bit BINARY FRACTIONS where 1.0 = 0x8000
|
// NOTE: This 'percentage' is a 16-bit BINARY FRACTIONS where 1.0 = 0x8000
|
||||||
|
|
Loading…
Reference in New Issue