summaryrefslogtreecommitdiff
path: root/src/print_wireless_info.c
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2015-08-06 18:18:19 +0200
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2015-08-06 18:18:19 +0200
commit6d634b1b675f2e567daa05b6580d2d5b451a02a7 (patch)
tree4da576ce5f15d9405bdfb73aebab4686208d0f2f /src/print_wireless_info.c
parent57c3fb36299bbd6d6c6682d90abcb840532ce486 (diff)
parent9b238a8d65c5fd444422a3f32ce98b6631c88377 (diff)
Merge pull request #50 from czarkoff/no_ip
Use "color_degraded" when interface has no IP
Diffstat (limited to 'src/print_wireless_info.c')
-rw-r--r--src/print_wireless_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c
index 8b390ab..83c717e 100644
--- a/src/print_wireless_info.c
+++ b/src/print_wireless_info.c
@@ -342,7 +342,7 @@ void print_wireless_info(yajl_gen json_gen, char *buffer, const char *interface,
if (info.flags & WIRELESS_INFO_FLAG_HAS_QUALITY)
START_COLOR((info.quality < info.quality_average ? "color_degraded" : "color_good"));
else
- START_COLOR("color_good");
+ START_COLOR((BEGINS_WITH(ip_address, "no IP") ? "color_degraded" : "color_good"));
} else {
walk = format_down;
START_COLOR("color_bad");