- Add a patch to fix cpu load value when there are nice'd processes.

PR:		ports/79540
Submitted by:	regis <regisr@pobox.com>
Approved by:	maintainer timeout (7 months)
This commit is contained in:
Florent Thoumie 2005-11-30 12:47:04 +00:00
parent f5f149a034
commit cafa20fd3c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=150036
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= wmcpuload
PORTVERSION= 1.0.1
PORTREVISION= 1
CATEGORIES= sysutils windowmaker
MASTER_SITES= http://www.sh.rim.or.jp/~ssato/src/

View file

@ -0,0 +1,11 @@
--- src/cpu_freebsd.c.orig Sat Mar 8 03:40:25 2003
+++ src/cpu_freebsd.c Wed Nov 30 13:42:56 2005
@@ -75,7 +75,7 @@
used = cpu_time[CP_USER] + cpu_time[CP_SYS];
if (!opts->ignore_nice)
used += cpu_time[CP_NICE];
- total = used + cpu_time[CP_IDLE];
+ total = used + cpu_time[CP_IDLE] + cpu_time[CP_NICE];
if (pre_total == 0) {
result = 0;