diff options
-rw-r--r-- | src/volume-control-pulse.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/volume-control-pulse.vala b/src/volume-control-pulse.vala index a2605c6..7f0edcb 100644 --- a/src/volume-control-pulse.vala +++ b/src/volume-control-pulse.vala @@ -749,7 +749,7 @@ public class VolumeControlPulse : VolumeControl int64 expires_at = _high_volume_approved_at + _high_volume_approved_ttl_usec; int64 now = GLib.get_monotonic_time(); if (expires_at > now) { - var seconds_left = (now - expires_at) / 1000000; + var seconds_left = 1 + ((now - expires_at) / 1000000); _high_volume_approved_timer = Timeout.add_seconds((uint)seconds_left, on_high_volume_timer); } } |