aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/info-notification.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/info-notification.vala b/src/info-notification.vala
index 36be8a1..bf04f61 100644
--- a/src/info-notification.vala
+++ b/src/info-notification.vala
@@ -44,7 +44,7 @@ public class IndicatorSound.InfoNotification: Notification
n.set_hint ("x-canonical-non-shaped-icon", "true");
n.set_hint ("x-canonical-private-synchronous", "true");
n.set_hint ("x-canonical-value-bar-tint", is_high_volume ? "true" : "false");
- n.set_hint ("value", (int32)(volume * 100.0));
+ n.set_hint ("value", (int32)((volume * 100.0) + 0.5));
show_notification();
}