Change named colors to hex values
[sysstatus.git] / src / status / netif.c
index 3c0fef0ba1e2c8b6d435a17d5396750bf7a878c9..e760b4c7393420944996b1dfd28d8cd2156c2d7a 100644 (file)
@@ -44,7 +44,7 @@ void status_netif(GlobalData *g, char *ifname)
 
   /* Is the interface up? */
   if (access(ifpath, F_OK)) {
-    //s.color = "grey";
+    //s.color = "#BEBEBE";  // grey
     return;
   }
 
@@ -53,9 +53,9 @@ void status_netif(GlobalData *g, char *ifname)
   stlen = fileRead(stline, sizeof(stline), ifpath);
   if (stlen > 0) {
     if (stline[0] == '1') {
-      s.color = "yellow";
+      s.color = "#FFFF00";  // yellow
     } else {
-      //s.color = "red";
+      //s.color = "#FF0000";  // red
       return;
     }
   } else {