mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:25:43 +01:00
aplay - Fix VU meter
Fix spaces displayed in VU meter to match with the actual max lengh (51).
This commit is contained in:
parent
2fba9cd65e
commit
483d8d65d9
1 changed files with 2 additions and 2 deletions
|
@ -1215,10 +1215,10 @@ static void compute_max_peak(u_char *data, size_t count)
|
||||||
putchar('\r');
|
putchar('\r');
|
||||||
for (val = 0; val <= perc / 2 && val < 50; val++)
|
for (val = 0; val <= perc / 2 && val < 50; val++)
|
||||||
putchar('#');
|
putchar('#');
|
||||||
for (; val < maxperc / 2 && val < 50; val++)
|
for (; val <= maxperc / 2 && val < 50; val++)
|
||||||
putchar(' ');
|
putchar(' ');
|
||||||
putchar('+');
|
putchar('+');
|
||||||
for (++val; val < 50; val++)
|
for (++val; val <= 50; val++)
|
||||||
putchar(' ');
|
putchar(' ');
|
||||||
|
|
||||||
printf("| %02i%%", maxperc);
|
printf("| %02i%%", maxperc);
|
||||||
|
|
Loading…
Reference in a new issue