summaryrefslogtreecommitdiffstats
path: root/sysutils/gnomesystemmonitor/files
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/gnomesystemmonitor/files')
-rw-r--r--sysutils/gnomesystemmonitor/files/patch-configure20
-rw-r--r--sysutils/gnomesystemmonitor/files/patch-src::proctable.c55
-rw-r--r--sysutils/gnomesystemmonitor/files/patch-src_util.c34
3 files changed, 0 insertions, 109 deletions
diff --git a/sysutils/gnomesystemmonitor/files/patch-configure b/sysutils/gnomesystemmonitor/files/patch-configure
deleted file mode 100644
index 504276306..000000000
--- a/sysutils/gnomesystemmonitor/files/patch-configure
+++ /dev/null
@@ -1,20 +0,0 @@
---- 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/gnomesystemmonitor/files/patch-src::proctable.c b/sysutils/gnomesystemmonitor/files/patch-src::proctable.c
deleted file mode 100644
index 05f4c5384..000000000
--- a/sysutils/gnomesystemmonitor/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);
diff --git a/sysutils/gnomesystemmonitor/files/patch-src_util.c b/sysutils/gnomesystemmonitor/files/patch-src_util.c
deleted file mode 100644
index 288ccc26a..000000000
--- a/sysutils/gnomesystemmonitor/files/patch-src_util.c
+++ /dev/null
@@ -1,34 +0,0 @@
---- src/util.c.orig Fri Dec 12 02:26:57 2003
-+++ src/util.c Fri Dec 12 02:35:38 2003
-@@ -16,6 +16,7 @@
-
- #ifdef __FreeBSD__
- # include <errno.h>
-+# include <termios.h>
- # include <libutil.h>
- #endif
-
-@@ -181,7 +182,11 @@
- * Make su think we're sending the password from a terminal:
- */
-
-+#ifndef __FreeBSD__
- if (((t_fd = OPEN_TTY()) < 0) || (grantpt(t_fd) < 0) || (unlockpt(t_fd) < 0)) {
-+#else
-+ if ((t_fd = OPEN_TTY()) < 0) {
-+#endif
- fprintf (stderr, "Unable to open a terminal\n");
- ABORT (root);
- }
-@@ -259,7 +264,11 @@
- }
- }
-
-+#ifndef __FreeBSD__
- if(((pts = ptsname(t_fd)) == NULL) || ((t_fd = open(pts, O_RDWR | O_NOCTTY)) < 0)) {
-+#else
-+ if (((pts = ttyname(t_fd)) == NULL) || ((t_fd = open(pts, O_RDWR | O_NOCTTY)) < 0)) {
-+#endif
- perror ("Unable to open pseudo slave terminal");
- _exit (-1);
- }