diff options
author | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2022-09-10 16:58:52 +0000 |
---|---|---|
committer | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2022-09-10 16:58:52 +0000 |
commit | 4994ff5af23931385b555bb3bacb9d58ec007ffd (patch) | |
tree | 4e1adce84e8a62cf21e5072c16cc23c2a6e000ac /usr.bin/top/machine.c | |
parent | 8400d526312a440c4b546fba065902f79c339ecd (diff) |
top(1): remove last vestiges of "last pid" support
millert@ removed most of the "last pid" support from top(1) in 1997.
See, e.g. top/machine.c,v1.7:
http://cvsweb.openbsd.org/src/usr.bin/top/machine.c?rev=1.7&content-type=text/x-cvsweb-markup
Let's remove the rest of it:
- Eliminate system_info.last_pid.
- Remove mpid parameter and "last pid" printing code from i_loadave().
Link: https://marc.info/?l=openbsd-tech&m=166277253606823&w=2
ok millert@
Diffstat (limited to 'usr.bin/top/machine.c')
-rw-r--r-- | usr.bin/top/machine.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 079560a8d3b..fbddbc172d3 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machine.c,v 1.111 2022/02/22 17:35:01 deraadt Exp $ */ +/* $OpenBSD: machine.c,v 1.112 2022/09/10 16:58:51 cheloha Exp $ */ /*- * Copyright (c) 1994 Thorsten Lockert <tholo@sigmasoft.com> @@ -306,7 +306,6 @@ get_system_info(struct system_info *si) si->cpustates = cpu_states; si->cpuonline = cpu_online; si->memory = memory_stats; - si->last_pid = -1; } static struct handle handle; |