top: avoid %cpu distortions when toggling task/thread modes

This commit addresses a long standing buglet (debian #441166) which
surfaces when the display mode is switched between task and threads.

An extra procps refresh is now forced upon such a transition which
parallels the approach used at startup for the exact same reason.

Reference: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=441166
This commit is contained in:
Jim Warner
2012-01-09 11:26:45 -06:00
committed by Craig Small
parent b246af9cec
commit b73a423cc2
2 changed files with 10 additions and 4 deletions

View File

@ -127,6 +127,10 @@
#define kbd_INS '\x8a'
#define kbd_DEL '\x8b'
/* Special value in Pseudo_row to force an additional procs refresh
-- used at startup and for task/thread mode transitions */
#define PROC_XTRA -1
/* ##### Enum's and Typedef's ############################################ */