diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-12-24 14:10:59 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-12-24 14:10:59 +0800 |
commit | c4b5b6f19f38e08df3639457edf36d90b25285a6 (patch) | |
tree | 8897b0fddd58280c37dd3dfb23a540dfe9166121 /sysutils | |
parent | 80b0c70a3b839fdd23be25181a1f142a4e0e1e03 (diff) | |
download | marcuscom-ports-c4b5b6f19f38e08df3639457edf36d90b25285a6.tar marcuscom-ports-c4b5b6f19f38e08df3639457edf36d90b25285a6.tar.gz marcuscom-ports-c4b5b6f19f38e08df3639457edf36d90b25285a6.tar.bz2 marcuscom-ports-c4b5b6f19f38e08df3639457edf36d90b25285a6.tar.lz marcuscom-ports-c4b5b6f19f38e08df3639457edf36d90b25285a6.tar.xz marcuscom-ports-c4b5b6f19f38e08df3639457edf36d90b25285a6.tar.zst marcuscom-ports-c4b5b6f19f38e08df3639457edf36d90b25285a6.zip |
This patch is no longer needed with the new libgtop.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8118 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/gnome-system-monitor/Makefile | 3 | ||||
-rw-r--r-- | sysutils/gnome-system-monitor/files/patch-src_proctable.cpp | 33 |
2 files changed, 2 insertions, 34 deletions
diff --git a/sysutils/gnome-system-monitor/Makefile b/sysutils/gnome-system-monitor/Makefile index 47e81c0b5..c2f33730a 100644 --- a/sysutils/gnome-system-monitor/Makefile +++ b/sysutils/gnome-system-monitor/Makefile @@ -3,11 +3,12 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/sysutils/gnome-system-monitor/Makefile,v 1.81 2006/12/18 02:24:26 marcus Exp $ +# $MCom: ports/sysutils/gnome-system-monitor/Makefile,v 1.82 2006/12/20 05:44:38 marcus Exp $ # PORTNAME= gnome-system-monitor PORTVERSION= 2.17.4.2 +PORTREVISION= 1 CATEGORIES= sysutils gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-system-monitor/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} diff --git a/sysutils/gnome-system-monitor/files/patch-src_proctable.cpp b/sysutils/gnome-system-monitor/files/patch-src_proctable.cpp deleted file mode 100644 index a34f18164..000000000 --- a/sysutils/gnome-system-monitor/files/patch-src_proctable.cpp +++ /dev/null @@ -1,33 +0,0 @@ ---- src/proctable.cpp.orig Wed Aug 30 14:11:01 2006 -+++ src/proctable.cpp Tue Oct 24 13:39:29 2006 -@@ -923,6 +923,12 @@ static void cb_exclude(ProcInfo* info, G - } - - -+static int -+pid_compare(const void* first, const void* second) -+{ -+ return *(unsigned*)first - *(unsigned*)second; -+} -+ - static void - refresh_list (ProcData *procdata, const unsigned *pid_list, const guint n) - { -@@ -1015,10 +1021,16 @@ proctable_update_list (ProcData * const - - pid_list = glibtop_get_proclist (&proclist, which, arg); - -+ qsort(pid_list, proclist.number, sizeof (*pid_list), pid_compare); -+ - /* FIXME: total cpu time elapsed should be calculated on an individual basis here - ** should probably have a total_time_last gint in the ProcInfo structure */ - glibtop_get_cpu (&cpu); -- total_time = MAX(cpu.total - total_time_last, 1); -+ total_time = cpu.total - total_time_last; -+ if (cpu.frequency) { -+ total_time /= (cpu.frequency/100); -+ } -+ total_time = MAX(total_time, 1); - total_time_last = cpu.total; - - refresh_list (procdata, pid_list, proclist.number); |