projects
/
sysstatus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change named colors to hex values
[sysstatus.git]
/
src
/
status
/
netif.c
diff --git
a/src/status/netif.c
b/src/status/netif.c
index 3c0fef0ba1e2c8b6d435a17d5396750bf7a878c9..e760b4c7393420944996b1dfd28d8cd2156c2d7a 100644
(file)
--- a/
src/status/netif.c
+++ b/
src/status/netif.c
@@
-44,7
+44,7
@@
void status_netif(GlobalData *g, char *ifname)
/* Is the interface up? */
if (access(ifpath, F_OK)) {
/* Is the interface up? */
if (access(ifpath, F_OK)) {
- //s.color = "
grey";
+ //s.color = "
#BEBEBE"; // grey
return;
}
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') {
stlen = fileRead(stline, sizeof(stline), ifpath);
if (stlen > 0) {
if (stline[0] == '1') {
- s.color = "
yellow";
+ s.color = "
#FFFF00"; // yellow
} else {
} else {
- //s.color = "
red";
+ //s.color = "
#FF0000"; // red
return;
}
} else {
return;
}
} else {