summaryrefslogtreecommitdiffstats
path: root/sysutils/gnome-system-monitor/files
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2005-05-20 01:13:43 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2005-05-20 01:13:43 +0800
commitea091117cec6ac370d6e73fc671cb75e8cc897b0 (patch)
treec26ed94a83936a5e65c2b2fa13d71d17535029b3 /sysutils/gnome-system-monitor/files
parenta20a20b7c05b7556b6442ee6c72faa0ef69bd8bd (diff)
downloadmarcuscom-ports-ea091117cec6ac370d6e73fc671cb75e8cc897b0.tar
marcuscom-ports-ea091117cec6ac370d6e73fc671cb75e8cc897b0.tar.gz
marcuscom-ports-ea091117cec6ac370d6e73fc671cb75e8cc897b0.tar.bz2
marcuscom-ports-ea091117cec6ac370d6e73fc671cb75e8cc897b0.tar.lz
marcuscom-ports-ea091117cec6ac370d6e73fc671cb75e8cc897b0.tar.xz
marcuscom-ports-ea091117cec6ac370d6e73fc671cb75e8cc897b0.tar.zst
marcuscom-ports-ea091117cec6ac370d6e73fc671cb75e8cc897b0.zip
Add and update to 2.11.2.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3999 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/gnome-system-monitor/files')
-rw-r--r--sysutils/gnome-system-monitor/files/patch-configure20
-rw-r--r--sysutils/gnome-system-monitor/files/patch-src::proctable.c31
-rw-r--r--sysutils/gnome-system-monitor/files/patch-src_openfiles.c23
3 files changed, 74 insertions, 0 deletions
diff --git a/sysutils/gnome-system-monitor/files/patch-configure b/sysutils/gnome-system-monitor/files/patch-configure
new file mode 100644
index 000000000..504276306
--- /dev/null
+++ b/sysutils/gnome-system-monitor/files/patch-configure
@@ -0,0 +1,20 @@
+--- configure.orig Mon Nov 25 21:02:50 2002
++++ configure Fri Nov 29 20:30:44 2002
+@@ -3731,7 +3731,7 @@
+
+
+ cat >>confdefs.h <<_ACEOF
+-#define GNOME_ICONDIR "${prefix}/share/pixmaps"
++#define GNOME_ICONDIR "${datadir}/pixmaps"
+ _ACEOF
+
+
+@@ -6630,7 +6630,7 @@
+ s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
+ s,@PKG_CONFIG@,$PKG_CONFIG,;t t
+ s,@PROCMAN_CFLAGS@,$PROCMAN_CFLAGS,;t t
+-s,@PROCMAN_LIBS@,$PROCMAN_LIBS,;t t
++s,@PROCMAN_LIBS@, $PROCMAN_LIBS,;t t
+ s,@GCONF_SCHEMA_CONFIG_SOURCE@,$GCONF_SCHEMA_CONFIG_SOURCE,;t t
+ s,@GCONF_SCHEMA_FILE_DIR@,$GCONF_SCHEMA_FILE_DIR,;t t
+ s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
diff --git a/sysutils/gnome-system-monitor/files/patch-src::proctable.c b/sysutils/gnome-system-monitor/files/patch-src::proctable.c
new file mode 100644
index 000000000..49a699641
--- /dev/null
+++ b/sysutils/gnome-system-monitor/files/patch-src::proctable.c
@@ -0,0 +1,31 @@
+--- src/proctable.c.orig Tue Nov 30 01:28:31 2004
++++ src/proctable.c Wed Dec 1 13:25:55 2004
+@@ -772,6 +772,12 @@
+
+
+
++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)
+ {
+@@ -863,10 +869,15 @@
+
+ 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 = cpu.total - total_time_last;
++ if (cpu.frequency) {
++ total_time /= (cpu.frequency/100);
++ }
+ total_time_last = cpu.total;
+
+ refresh_list (procdata, pid_list, proclist.number);
diff --git a/sysutils/gnome-system-monitor/files/patch-src_openfiles.c b/sysutils/gnome-system-monitor/files/patch-src_openfiles.c
new file mode 100644
index 000000000..1b94fbb9f
--- /dev/null
+++ b/sysutils/gnome-system-monitor/files/patch-src_openfiles.c
@@ -0,0 +1,23 @@
+--- src/openfiles.c.orig Mon Apr 11 03:50:49 2005
++++ src/openfiles.c Mon Apr 11 03:52:13 2005
+@@ -8,6 +8,7 @@
+ #include <netdb.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
++#include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include "procman.h"
+ #include "openfiles.h"
+@@ -152,10 +153,10 @@
+ {
+ ProcInfo *info;
+ GtkTreeModel *model;
+- glibtop_open_files_entry *openfiles;
+- glibtop_proc_open_files procmap;
+ GHashTable *new_maps;
+ gint i;
++ glibtop_open_files_entry *openfiles;
++ glibtop_proc_open_files procmap;
+
+ info = g_object_get_data (G_OBJECT (tree), "selected_info");
+ g_return_if_fail (info);