]> git.sur5r.net Git - i3/i3status/commitdiff
Use 3 characters for WLAN signal strength
authorMichael Stapelberg <michael+x200@stapelberg.de>
Thu, 13 Nov 2008 18:43:27 +0000 (19:43 +0100)
committerMichael Stapelberg <michael+x200@stapelberg.de>
Thu, 13 Nov 2008 18:43:27 +0000 (19:43 +0100)
wmiistatus.c

index 48c504c7219016569e4103266c51f486d3021c28..95cc2efa70efb41bf206ff539b9583b524e7ad5a 100644 (file)
@@ -297,7 +297,7 @@ static char *get_wireless_info() {
 
                        } else {
                                const char *ip_address;
-                               (void)snprintf(part, sizeof(part), "W: (%02d%%) ", quality);
+                               (void)snprintf(part, sizeof(part), "W: (%03d%%) ", quality);
                                ip_address = get_ip_address(wlan_interface);
                                strcpy(part+strlen(part), ip_address);
                        }