Fix if_running not working on linux when a top flavour is not running
[monky] / src / top.c
index c363ee7..f4683ee 100644 (file)
--- a/src/top.c
+++ b/src/top.c
@@ -670,6 +670,7 @@ void process_find_top(struct process **cpu, struct process **mem,
 #ifdef IOSTATS
                        && !top_io
 #endif /* IOSTATS */
+                       && !top_running
           ) {
                return;
        }