Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
battery_remaining: check for division by zero
[slstatus.git]
/
components
/
volume.c
diff --git
a/components/volume.c
b/components/volume.c
index
0bfbe08
..
8674211
100644
(file)
--- a/
components/volume.c
+++ b/
components/volume.c
@@
-42,5
+42,5
@@
vol_perc(const char *card)
close(afd);
- return bprintf("%d
%%
", v & 0xff);
+ return bprintf("%d", v & 0xff);
}