summaryrefslogtreecommitdiffstats
path: root/sysutils/gnome-system-monitor/files/patch-src::proctable.c
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-11-08 07:20:22 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-11-08 07:20:22 +0800
commitecc692c609745ed2590ee410fcf60f8fc5577767 (patch)
tree804fc05006975ef53fbc334db1f4ffa42ff9359f /sysutils/gnome-system-monitor/files/patch-src::proctable.c
parent3a142666db7f6854784739853cd212ba74b8b6bd (diff)
downloadmarcuscom-ports-ecc692c609745ed2590ee410fcf60f8fc5577767.tar
marcuscom-ports-ecc692c609745ed2590ee410fcf60f8fc5577767.tar.gz
marcuscom-ports-ecc692c609745ed2590ee410fcf60f8fc5577767.tar.bz2
marcuscom-ports-ecc692c609745ed2590ee410fcf60f8fc5577767.tar.lz
marcuscom-ports-ecc692c609745ed2590ee410fcf60f8fc5577767.tar.xz
marcuscom-ports-ecc692c609745ed2590ee410fcf60f8fc5577767.tar.zst
marcuscom-ports-ecc692c609745ed2590ee410fcf60f8fc5577767.zip
Remove these ports now that they have been merged into the ports tree.
Next stop, GNOME 2.9! git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3045 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/gnome-system-monitor/files/patch-src::proctable.c')
-rw-r--r--sysutils/gnome-system-monitor/files/patch-src::proctable.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/sysutils/gnome-system-monitor/files/patch-src::proctable.c b/sysutils/gnome-system-monitor/files/patch-src::proctable.c
deleted file mode 100644
index 05f4c5384..000000000
--- a/sysutils/gnome-system-monitor/files/patch-src::proctable.c
+++ /dev/null
@@ -1,55 +0,0 @@
---- 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 @@
- glibtop_get_proc_uid (&procuid, pid);
- glibtop_get_proc_time (&proctime, pid);
- newcputime = proctime.utime + proctime.stime;
-+ if (proctime.frequency) {
-+ newcputime /= (proctime.frequency/100);
-+ }
- 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 @@
- glibtop_get_proc_uid (&procuid, pid);
- glibtop_get_proc_time (&proctime, pid);
- newcputime = proctime.utime + proctime.stime;
-+ if (proctime.frequency) {
-+ newcputime /= (proctime.frequency/100);
-+ }
-+
-
- wnck_pid_read_resource_usage (gdk_screen_get_display (gdk_screen_get_default ()),
- pid,
-@@ -761,6 +768,12 @@
- return FALSE;
- }
-
-+static int
-+pid_compare(const void* first, const void* second)
-+{
-+ return *(unsigned*)first - *(unsigned*)second;
-+}
-+
- static void
- refresh_list (ProcData *data, unsigned *pid_list, gint n)
- {
-@@ -769,6 +782,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);
-+
- /* Add or update processes */
- while (i < n) {
- ProcInfo *info;
-@@ -862,6 +877,9 @@
- ** should probably have a total_time_last gint in the ProcInfo structure */
- glibtop_get_cpu (&cpu);
- total_time = cpu.total - total_time_last;
-+ if (cpu.frequency) {
-+ total_time /= (cpu.frequency/100);
-+ }
- total_time_last = cpu.total;
-
- refresh_list (procdata, pid_list, n);