diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2010-06-25 00:04:11 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2010-06-25 00:04:11 +0200 |
commit | 71f71660322b12b8602f5979222d280b7db333bd (patch) | |
tree | b06cabef2cdc1390307d84bee8f080dd765e724f | |
parent | 506b17de6e97e23a3e2c5be01194624d32fe644d (diff) |
wireless: fix formats
-rw-r--r-- | src/print_wireless_info.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); } |