diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 91f60d7d14..e5f0e882e8 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;