View | Details | Raw Unified | Return to bug 207120 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	htop
4
PORTNAME=	htop
5
PORTVERSION=	2.0.0
5
PORTVERSION=	2.0.0
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	sysutils
7
CATEGORIES=	sysutils
8
8
9
MAINTAINER=	gaod@hychen.org
9
MAINTAINER=	gaod@hychen.org
(-)files/patch-freebsd__FreeBSDProcessList.c (-2 / +12 lines)
Lines 1-5 Link Here
1
--- freebsd/FreeBSDProcessList.c.orig	2016-02-13 00:37:56.160832000 +0800
1
--- freebsd/FreeBSDProcessList.c.orig	2016-02-10 12:48:39.000000000 -0800
2
+++ freebsd/FreeBSDProcessList.c	2016-02-13 00:38:19.671290000 +0800
2
+++ freebsd/FreeBSDProcessList.c	2016-02-13 10:00:05.259692744 -0800
3
@@ -477,8 +477,8 @@
3
@@ -477,8 +477,8 @@
4
       }
4
       }
5
 
5
 
Lines 11-13 Link Here
11
       proc->nlwp = kproc->ki_numthreads;
11
       proc->nlwp = kproc->ki_numthreads;
12
       proc->time = (kproc->ki_runtime + 5000) / 10000;
12
       proc->time = (kproc->ki_runtime + 5000) / 10000;
13
 
13
 
14
@@ -487,9 +487,6 @@
15
          // system idle process should own all CPU time left regardless of CPU count
16
          if ( strcmp("idle", kproc->ki_comm) == 0 ) {
17
             isIdleProcess = true;
18
-         } else {
19
-            if (cpus > 1)
20
-               proc->percent_cpu = proc->percent_cpu / (double) cpus;
21
          }
22
       }
23
       if (isIdleProcess == false && proc->percent_cpu >= 99.8) {

Return to bug 207120