From 8237708d5419378d5c4ff8b4e0dab6f30e4942b8 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Fri, 11 Jan 2013 19:03:37 +0000 Subject: [PATCH] Fixed disabled #ifdef. Also moved refresh interval on 2secs, to easy panel a little bit. --- ede-panel/applets/mem-monitor/MemMonitor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ede-panel/applets/mem-monitor/MemMonitor.cpp b/ede-panel/applets/mem-monitor/MemMonitor.cpp index 530b36f..e3477ad 100644 --- a/ede-panel/applets/mem-monitor/MemMonitor.cpp +++ b/ede-panel/applets/mem-monitor/MemMonitor.cpp @@ -22,7 +22,7 @@ #include "Applet.h" #include -#if defined(linux2) +#if defined(linux) #include #include #include @@ -33,7 +33,7 @@ EDELIB_NS_USING(color_rgb_to_fltk) -#define UPDATE_INTERVAL 1.0f +#define UPDATE_INTERVAL 2.0f #define STR_CMP(first, second, n) (strncmp(first, second, n) == 0) class MemMonitor : public Fl_Box { @@ -42,6 +42,7 @@ private: public: MemMonitor() : Fl_Box(0, 0, 45, 25), mem_usedp(0), swap_usedp(0) { box(FL_THIN_DOWN_BOX); + update_status(); } void update_status(void);