X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fprint_eth_info.c;h=e2326b58e5f44416d19511005d0fb12a1cfef931;hb=9b238a8d65c5fd444422a3f32ce98b6631c88377;hp=06a1613d62d418092b267786c687c127830c7762;hpb=15f2279592032af1507de09ef31eba81aee53191;p=i3%2Fi3status diff --git a/src/print_eth_info.c b/src/print_eth_info.c index 06a1613..e2326b5 100644 --- a/src/print_eth_info.c +++ b/src/print_eth_info.c @@ -126,7 +126,10 @@ void print_eth_info(yajl_gen json_gen, char *buffer, const char *interface, cons goto out; } - START_COLOR("color_good"); + if (BEGINS_WITH(ip_address, "no IP")) + START_COLOR("color_degraded"); + else + START_COLOR("color_good"); for (walk = format_up; *walk != '\0'; walk++) { if (*walk != '%') {