#ifdef IOSTATS
int top_io;
#endif
+#ifdef __linux__
+int top_running;
+#endif
static unsigned int top_name_width = 15;
int output_methods;
static int extra_newline;
#ifdef IOSTATS
top_io = 0;
#endif
+#ifdef __linux__
+ top_running = 0;
+#endif
#ifdef MPD
mpd_env_host = getenv("MPD_HOST");
mpd_env_port = getenv("MPD_PORT");
#ifdef IOSTATS
extern int top_io;
#endif
+#ifdef __linux__
+extern int top_running;
+#endif
/* defined in conky.c, needed by top.c */
extern int cpu_separate;
#ifdef __linux__
END OBJ_IF(if_running, INFO_TOP)
if (arg) {
+ top_running = 1;
obj->data.ifblock.s = strndup(arg, text_buffer_size);
#else
END OBJ_IF(if_running, 0)
#ifdef IOSTATS
&& !top_io
#endif /* IOSTATS */
+ && !top_running
) {
return;
}