summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/gui/gwps-common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 91f60d7..e5f0e88 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -842,9 +842,8 @@ static char *get_token_value(struct gui_wps *gwps,
else
{
*intval = (limit - 3) * (global_settings.volume
- - sound_min(SOUND_VOLUME))
- / (sound_max(SOUND_VOLUME)
- - sound_min(SOUND_VOLUME)) + 2;
+ - sound_min(SOUND_VOLUME) - 1)
+ / (-1 - sound_min(SOUND_VOLUME)) + 2;
}
}
return buf;