diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-09-19 03:12:45 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-09-19 03:12:45 +0800 |
commit | 768900dddc2adb5bd0af6b3e0d59654dc71d2e9b (patch) | |
tree | b6e12b7f558af77dfbd52ab89a84489c127fc85b /sysutils/gnome-system-monitor/files/patch-src::proctable.c | |
parent | 2fba1a2d8eb914d118a18389a4efb30f38717605 (diff) | |
download | marcuscom-ports-768900dddc2adb5bd0af6b3e0d59654dc71d2e9b.tar marcuscom-ports-768900dddc2adb5bd0af6b3e0d59654dc71d2e9b.tar.gz marcuscom-ports-768900dddc2adb5bd0af6b3e0d59654dc71d2e9b.tar.bz2 marcuscom-ports-768900dddc2adb5bd0af6b3e0d59654dc71d2e9b.tar.lz marcuscom-ports-768900dddc2adb5bd0af6b3e0d59654dc71d2e9b.tar.xz marcuscom-ports-768900dddc2adb5bd0af6b3e0d59654dc71d2e9b.tar.zst marcuscom-ports-768900dddc2adb5bd0af6b3e0d59654dc71d2e9b.zip |
Remove these ports now that they have been merged into the FreeBSD ports tree.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1225 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.c | 53 |
1 files changed, 0 insertions, 53 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 5cb348a5a..000000000 --- a/sysutils/gnome-system-monitor/files/patch-src::proctable.c +++ /dev/null @@ -1,53 +0,0 @@ ---- src/proctable.c.orig Sat Jun 7 04:35:32 2003 -+++ src/proctable.c Thu Sep 4 16:29:18 2003 -@@ -539,6 +539,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)); - - info->mem = procmem.size; -@@ -620,6 +623,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); -+ } - - arguments = glibtop_get_proc_args (&procargs, pid, 0); - get_process_name (procdata, info, procstate.cmd, arguments); -@@ -709,12 +715,20 @@ - return NULL; - } - -+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) - { - ProcData *procdata = data; - GList *list = procdata->info; - gint i = 0; -+ -+ qsort(pid_list, n, sizeof (*pid_list), pid_compare); - - while (i < n) - { -@@ -812,6 +826,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); |