aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mixer.c b/src/mixer.c
index 742c231..e496e18 100644
--- a/src/mixer.c
+++ b/src/mixer.c
@@ -552,7 +552,7 @@ static int int_to_percent(const struct snd_ctl_elem_info *ei, int value)
if (range == 0)
return 0;
- return ((value - ei->value.integer.min) / range) * 100;
+ return ((value - ei->value.integer.min) * 100) / range;
}
/** Gets a percentage representation of a specified control value.