top: do not use previous colleced data wheh "h" toggles threads display
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Aug 2019 14:17:11 +0000 (16:17 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Aug 2019 14:17:11 +0000 (16:17 +0200)
commitac78f2ac96b3efd6551a08e7dc609efa1fb69481
tree22f335ab03a19a134ce645cade80eabf9e575ebd
parent4f70a32f46f12af59b71e869348dc5db9d0bd930
top: do not use previous colleced data wheh "h" toggles threads display

This prevents first update from showing incorrect CPU usage data

function                                             old     new   delta
handle_input                                         620     643     +23

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/top.c