diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-06-21 01:39:21 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-06-21 01:39:21 +0000 |
commit | 099338b1c86202448dad954ddc338a416dd71435 (patch) | |
tree | fcbcca1d1a6096863acd02d3cb480eb61cbb0e7c /sysutils/wmtop | |
parent | Add a patch to respect CFLAGS/CC. (diff) |
- This patch is unnecessary for port version 0.84 added in rev 1.5
of Makefile
- Overlook on port update
PR: 28266
Submitted by: Patrick Li <pat@databits.net>
Notes
Notes:
svn path=/head/; revision=44267
Diffstat (limited to 'sysutils/wmtop')
-rw-r--r-- | sysutils/wmtop/files/patch-ab | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/sysutils/wmtop/files/patch-ab b/sysutils/wmtop/files/patch-ab deleted file mode 100644 index 58178b734998..000000000000 --- a/sysutils/wmtop/files/patch-ab +++ /dev/null @@ -1,55 +0,0 @@ ---- wmtop.c.orig Wed May 17 05:08:20 2000 -+++ wmtop.c Wed Sep 20 03:48:43 2000 -@@ -78,6 +78,10 @@ - */ - int mode = 0; - -+#if defined(FREEBSD) -+int show_system = 0; -+#endif -+ - #if defined(DEBUG) - /* - * Memory handler -@@ -234,7 +238,7 @@ - char deparenthesised_name[WMTOP_BUFLENGTH]; - #endif /* defined(LINUX) */ - #if defined(FREEBSD) -- int us,um,ks,km; -+ int us,um,ks,km,ppid; - #endif /* defined(FREEBSD) */ - - #if defined(PARANOID) -@@ -298,11 +302,18 @@ - * Extract cpu times from data in /proc/<pid>/stat - * XXX: Process name extractor for FreeBSD is untested right now. - */ -- rc = sscanf(line,"%s %*s %*s %*s %*s %*s %*s %*s %d,%d %d,%d", -- procname, -+ rc = sscanf(line,"%s %*s %d %*s %*s %*s %*s %*s %d,%d %d,%d", -+ procname, &ppid, - &us,&um,&ks,&km); - if (rc<5) - return 1; -+ -+ if (ppid == 0 && !show_system) -+ { -+ process->time_stamp=0; -+ return 1; -+ } -+ - if (process->name) - wmtop_free(process->name); - process->name = wmtop_strdup(procname); -@@ -725,6 +736,11 @@ - i++; - } - break; -+#if defined (FREEBSD) -+ case 'S': -+ show_system = 1; -+ break; -+#endif - case 'r': - if (argc > (i+1)) { - refresh_rate = (atoi(argv[i+1]) * 1000); |