From: Michael Stapelberg Date: Thu, 24 Jun 2010 22:04:11 +0000 (+0200) Subject: wireless: fix formats X-Git-Tag: 2.2~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=71f71660322b12b8602f5979222d280b7db333bd;p=i3%2Fi3status wireless: fix formats --- diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c index 28d9cdb..f67626b 100644 --- a/src/print_wireless_info.c +++ b/src/print_wireless_info.c @@ -101,9 +101,9 @@ void print_wireless_info(const char *interface, const char *format_up, const cha if (BEGINS_WITH(walk+1, "quality")) { int max_qual = get_wireless_quality_max(interface); if (max_qual && max_qual >= quality) - printf("%d%%", (int)(quality * (100.0 / max_qual))); + printf("%03d%%", (int)(quality * (100.0 / max_qual))); else - printf("%d", quality); + printf("%d dBm", quality); walk += strlen("quality"); }