Skip to content

Commit

Permalink
wireless: fix formats
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Jun 24, 2010
1 parent 506b17d commit 71f7166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/print_wireless_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 71f7166

Please sign in to comment.