status-mem/mem.c
changeset 3 dae770da6416
parent 1 3e9290bf7249
child 13 d7ce3b1dddc4
--- a/status-mem/mem.c	Mon Oct 20 23:00:01 2014 +0400
+++ b/status-mem/mem.c	Mon Oct 20 23:24:03 2014 +0400
@@ -46,12 +46,16 @@
 
         int used = total - free;
 
+#ifdef PANGO_MARKUP
         char *color;
         if (used*1.0/total < GREEN) color = "color='green'";
         else if (used*1.0/total > RED) color = "color='red'";
         else if (used*1.0/total > ORANGE) color = "color='orange'";
         else color = "";
         printf("<span %s>%d/%d</span>\n", color, used/1024, total/1024);
+#else
+        printf("%d/%d\n", used/1024, total/1024);
+#endif
         fflush(stdout);
 	sleep(UPDATE_PERIOD);
     }