summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-07-11 11:47:01 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-07-11 11:47:01 +0400
commit0d5313cd75042c3e1b933f3fccce71b81e5560d8 (patch)
tree3359b5292f9dcd4906963549dd380373ce317550
parent8f184695df676bdd6be38b182d78bedcdfdb99fa (diff)
downloadhtop-0d5313cd75042c3e1b933f3fccce71b81e5560d8.tar.gz
Adjust nice value on solaris
-rw-r--r--sysdeps/solaris.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/solaris.c b/sysdeps/solaris.c
index 31d2643..7278c20 100644
--- a/sysdeps/solaris.c
+++ b/sysdeps/solaris.c
@@ -129,7 +129,7 @@ bool sysdep_get_process_info(Process *process, pid_t pid)
process->stime = usage.pr_stime.tv_sec * tix;
process->priority = info.pr_lwp.pr_pri;
- process->nice = info.pr_lwp.pr_nice;
+ process->nice = info.pr_lwp.pr_nice - 20;
process->nlwp = info.pr_nlwp;