summaryrefslogtreecommitdiff
path: root/usr.bin/top/machine.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-11-29 12:34:23 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-11-29 12:34:23 +0000
commit567a03881779688d34d57c2d20be81bebf982df1 (patch)
tree56b9ed423639cee463f4e9b5f0e36a4d283da286 /usr.bin/top/machine.c
parentb0713b912ca8c95fe4eea51c080490f69f59e73f (diff)
Do not test for processes being swapped out since this can't happen anymore.
Diffstat (limited to 'usr.bin/top/machine.c')
-rw-r--r--usr.bin/top/machine.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 20e3b39eac0..9a2a54963b4 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machine.c,v 1.53 2006/09/20 21:26:20 ray Exp $ */
+/* $OpenBSD: machine.c,v 1.54 2006/11/29 12:34:22 miod Exp $ */
/*-
* Copyright (c) 1994 Thorsten Lockert <tholo@sigmasoft.com>
@@ -475,15 +475,6 @@ format_next_process(caddr_t handle, char *(*get_userid)(uid_t))
pp = *(hp->next_proc++);
hp->remaining--;
- if ((pp->p_flag & P_INMEM) == 0) {
- /*
- * Print swapped processes as <pname>
- */
- char buf[sizeof(pp->p_comm)];
-
- (void) strlcpy(buf, pp->p_comm, sizeof(buf));
- (void) snprintf(pp->p_comm, sizeof(pp->p_comm), "<%s>", buf);
- }
cputime = (pp->p_uticks + pp->p_sticks + pp->p_iticks) / stathz;
/* calculate the base for cpu percentages */