summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2021-09-30 00:00:00 -0500
committerCraig Small <csmall@dropbear.xyz>2021-10-02 13:00:00 +1000
commita5b51bc4174669d8074150a50cdac40979256f19 (patch)
treecfe8f6f7403ff712e71e0b69b52815b61d959a94
parentca30741a30d2501b4d253e572d047e7d391be8a6 (diff)
downloadprocps-ng-a5b51bc4174669d8074150a50cdac40979256f19.tar.gz
top: revert part of a patch regarding separate threads
In the patch referenced below, some logic was moved in that frame_make function in an effort to overlap those background threads with additional main thread duties. Unfortunately, the auto-size column feature was broken in the process. So this patch will revert a portion of the earlier patch so as to restore the broken feature. Reference(s): . Sep 2021, top overlap additional processing commit f11f43b4f7118f284f9aec19f6885d163848ffe7 Signed-off-by: Jim Warner <james.warner@comcast.net>
-rw-r--r--top/top.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/top/top.c b/top/top.c
index c52b4ee..2c92212 100644
--- a/top/top.c
+++ b/top/top.c
@@ -6361,6 +6361,10 @@ static void frame_make (void) {
WIN_t *w = Curwin; // avoid gcc bloat with a local copy
int i, scrlins;
+ // check auto-sized width increases from the last iteration...
+ if (AUTOX_MODE && Autox_found)
+ widths_resize();
+
/* deal with potential signal(s) since the last time around
plus any input which may change 'tasks_refresh' needs... */
if (Frames_signal)
@@ -6382,10 +6386,6 @@ static void frame_make (void) {
memory_refresh(NULL);
#endif
- // check auto-sized width increases from the last iteration...
- if (AUTOX_MODE && Autox_found)
- widths_resize();
-
// whoa either first time or thread/task mode change, (re)prime the pump...
if (Pseudo_row == PROC_XTRA) {
usleep(LIB_USLEEP);