summaryrefslogtreecommitdiff
path: root/src/print_wireless_info.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2010-06-25 00:04:11 +0200
committerMichael Stapelberg <michael@stapelberg.de>2010-06-25 00:04:11 +0200
commit71f71660322b12b8602f5979222d280b7db333bd (patch)
treeb06cabef2cdc1390307d84bee8f080dd765e724f /src/print_wireless_info.c
parent506b17de6e97e23a3e2c5be01194624d32fe644d (diff)
wireless: fix formats
Diffstat (limited to 'src/print_wireless_info.c')
-rw-r--r--src/print_wireless_info.c4
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");
}