X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/80fc20d1d69b14f36ad9bb64d8af38481cbf1ff5..3f45a5f7caf37ec04bbc3aea5e7def1452d1118c:/components/volume.c diff --git a/components/volume.c b/components/volume.c index 8674211..0bfbe08 100644 --- 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); }