summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index dda99c8f..dd760713 100644
--- a/htop.c
+++ b/htop.c
@@ -440,6 +440,7 @@ int main(int argc, char** argv) {
gettimeofday(&tv, NULL);
newTime = ((double)tv.tv_sec * 10) + ((double)tv.tv_usec / 100000);
recalculate = (newTime - oldTime > CRT_delay);
+ int following = follow ? ((Process*)Panel_getSelected(panel))->pid : -1;
if (recalculate)
oldTime = newTime;
if (doRefresh) {
@@ -451,7 +452,7 @@ int main(int argc, char** argv) {
ProcessList_sort(pl);
refreshTimeout = 1;
}
- ProcessList_rebuildPanel(pl, true, follow, userOnly, userId, filtering, incFilter.buffer);
+ ProcessList_rebuildPanel(pl, true, following, userOnly, userId, filtering, incFilter.buffer);
}
doRefresh = true;