diff options
-rw-r--r-- | src/service.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.vala b/src/service.vala index 507a39e..60b48fa 100644 --- a/src/service.vala +++ b/src/service.vala @@ -143,7 +143,7 @@ public class IndicatorSound.Service: Object { icon = "notification-audio-volume-high"; this.notification.update ("indicator-sound", "", icon); - this.notification.set_hint_int32 ("value", ((int32) (100 * v)).clamp (-1, 101)); + this.notification.set_hint_int32 ("value", ((int32) (100 * v / this.max_volume)).clamp (-1, 101)); try { this.notification.show (); } |