aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/gnomesystemmonitor
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-12-07 11:16:20 +0800
committermarcus <marcus@FreeBSD.org>2004-12-07 11:16:20 +0800
commit40303831bb6c840b39fb27e39095e903e64c0566 (patch)
tree925849f77f83fd87bd838a1cfad1925ab9fb0edc /sysutils/gnomesystemmonitor
parente2b20abf39b1f63942d0673925d22ed9d828c265 (diff)
downloadfreebsd-ports-gnome-40303831bb6c840b39fb27e39095e903e64c0566.tar.gz
freebsd-ports-gnome-40303831bb6c840b39fb27e39095e903e64c0566.tar.zst
freebsd-ports-gnome-40303831bb6c840b39fb27e39095e903e64c0566.zip
Update to 2.8.1.
Diffstat (limited to 'sysutils/gnomesystemmonitor')
-rw-r--r--sysutils/gnomesystemmonitor/Makefile3
-rw-r--r--sysutils/gnomesystemmonitor/distinfo4
-rw-r--r--sysutils/gnomesystemmonitor/files/patch-src::proctable.c36
3 files changed, 21 insertions, 22 deletions
diff --git a/sysutils/gnomesystemmonitor/Makefile b/sysutils/gnomesystemmonitor/Makefile
index fea54dbfe25f..8f3a6aed9ff1 100644
--- a/sysutils/gnomesystemmonitor/Makefile
+++ b/sysutils/gnomesystemmonitor/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= gnomesystemmonitor
-PORTVERSION= 2.8.0
-PORTREVISION= 1
+PORTVERSION= 2.8.1
CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-system-monitor/2.8
diff --git a/sysutils/gnomesystemmonitor/distinfo b/sysutils/gnomesystemmonitor/distinfo
index 9653e3817c5e..9fff60c20788 100644
--- a/sysutils/gnomesystemmonitor/distinfo
+++ b/sysutils/gnomesystemmonitor/distinfo
@@ -1,2 +1,2 @@
-MD5 (gnome2/gnome-system-monitor-2.8.0.tar.bz2) = 9aec14e8c549b26b2d2cd0e997038d8f
-SIZE (gnome2/gnome-system-monitor-2.8.0.tar.bz2) = 681242
+MD5 (gnome2/gnome-system-monitor-2.8.1.tar.bz2) = b76c5a70689a704981e1a501f0b3165b
+SIZE (gnome2/gnome-system-monitor-2.8.1.tar.bz2) = 666862
diff --git a/sysutils/gnomesystemmonitor/files/patch-src::proctable.c b/sysutils/gnomesystemmonitor/files/patch-src::proctable.c
index 05f4c5384caf..30ef6303d397 100644
--- a/sysutils/gnomesystemmonitor/files/patch-src::proctable.c
+++ b/sysutils/gnomesystemmonitor/files/patch-src::proctable.c
@@ -1,6 +1,6 @@
---- src/proctable.c.orig Mon Jul 19 10:02:09 2004
-+++ src/proctable.c Mon Jul 19 10:08:18 2004
-@@ -563,6 +563,9 @@
+--- src/proctable.c.orig Sun Nov 21 18:03:12 2004
++++ src/proctable.c Mon Dec 6 22:10:55 2004
+@@ -535,6 +535,9 @@
glibtop_get_proc_uid (&procuid, pid);
glibtop_get_proc_time (&proctime, pid);
newcputime = proctime.utime + proctime.stime;
@@ -9,8 +9,8 @@
+ }
model = gtk_tree_view_get_model (GTK_TREE_VIEW (procdata->tree));
- wnck_pid_read_resource_usage (gdk_screen_get_display (gdk_screen_get_default ()),
-@@ -667,6 +670,10 @@
+ wnck_pid_read_resource_usage (gdk_screen_get_display (gdk_screen_get_default ()),
+@@ -645,6 +648,10 @@
glibtop_get_proc_uid (&procuid, pid);
glibtop_get_proc_time (&proctime, pid);
newcputime = proctime.utime + proctime.stime;
@@ -19,12 +19,12 @@
+ }
+
- wnck_pid_read_resource_usage (gdk_screen_get_display (gdk_screen_get_default ()),
- pid,
-@@ -761,6 +768,12 @@
- return FALSE;
+ wnck_pid_read_resource_usage (gdk_screen_get_display (gdk_screen_get_default ()),
+ pid,
+@@ -745,6 +752,12 @@
}
+
+static int
+pid_compare(const void* first, const void* second)
+{
@@ -32,18 +32,18 @@
+}
+
static void
- refresh_list (ProcData *data, unsigned *pid_list, gint n)
+ refresh_list (ProcData *data, const unsigned *pid_list, guint n)
{
-@@ -769,6 +782,8 @@
+@@ -754,6 +767,8 @@
GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (procdata->tree));
- gint i = 0;
-
-+ qsort(pid_list, n, sizeof (*pid_list), pid_compare);
+ guint i;
+
++ qsort (pid_list, n, sizeof (*pid_list), pid_compare);
+
/* Add or update processes */
- while (i < n) {
+ for(i = 0; i < n; ++i) {
ProcInfo *info;
-@@ -862,6 +877,9 @@
+@@ -837,6 +852,9 @@
** should probably have a total_time_last gint in the ProcInfo structure */
glibtop_get_cpu (&cpu);
total_time = cpu.total - total_time_last;
@@ -51,5 +51,5 @@
+ total_time /= (cpu.frequency/100);
+ }
total_time_last = cpu.total;
-
- refresh_list (procdata, pid_list, n);
+
+ refresh_list (procdata, pid_list, proclist.number);