From 71f71660322b12b8602f5979222d280b7db333bd Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 25 Jun 2010 00:04:11 +0200 Subject: wireless: fix formats --- src/print_wireless_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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"); } -- cgit v1.2.3