Xinqi Bao's Git

wifi_perc: Simplify on Linux
[slstatus.git] / components / volume.c
index 0bfbe08..8a70b20 100644 (file)
@@ -1,5 +1,4 @@
 /* See LICENSE file for copyright and license details. */
-#include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <string.h>
@@ -42,5 +41,5 @@ vol_perc(const char *card)
 
        close(afd);
 
-       return bprintf("%d%%", v & 0xff);
+       return bprintf("%d", v & 0xff);
 }