diff options
author | kn <kn@cvs.openbsd.org> | 2020-06-25 20:38:42 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2020-06-25 20:38:42 +0000 |
commit | e40a97c1ba867e6c712cf6a94b55fc918551b4a4 (patch) | |
tree | 55f64cf21bf4c2ce3e7c5c80e301994df1eb87a9 /usr.bin/top/top.c | |
parent | 1c977b025a39dfd2fbf1dd67876fa238eb9b146b (diff) |
Remove unused "remaining" member in struct handle
Only ever set or decremented since import with machine.c r1.1 (1997);
While here, simplify the skip semantics behind the scroll functionality.
OK millert
Diffstat (limited to 'usr.bin/top/top.c')
-rw-r--r-- | usr.bin/top/top.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c index 75f0419a0b9..3ee62170e2e 100644 --- a/usr.bin/top/top.c +++ b/usr.bin/top/top.c @@ -1,4 +1,4 @@ -/* $OpenBSD: top.c,v 1.102 2020/01/06 20:05:10 zhuk Exp $ */ +/* $OpenBSD: top.c,v 1.103 2020/06/25 20:38:41 kn Exp $ */ /* * Top users/processes display for Unix @@ -569,8 +569,7 @@ restart: */ if (skip + active_procs > system_info.p_active) skip = system_info.p_active - active_procs; - for (i = skip; i > 0; i--) - skip_next_process(processes); + skip_processes(processes, skip); /* now show the top "n" processes. */ for (i = 0; i < active_procs; i++) { pid_t pid; |