Fix if_running not working on linux when a top flavour is not running
[monky] / src / conky.c
index 4df492b..59987da 100644 (file)
@@ -146,6 +146,9 @@ int top_cpu, top_mem, top_time;
 #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;
@@ -5053,6 +5056,9 @@ static void set_default_configurations(void)
 #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");