diff options
Diffstat (limited to 'src/print_wireless_info.c')
-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"); } |