diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2015-08-11 18:37:34 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2015-08-11 18:37:34 -0500 |
commit | 316be08822afec241a5ed1acca16612b87abfcdf (patch) | |
tree | 4a2f87025a13febcf376ae8abc045871a7074768 | |
parent | 156b8fd79ae38aeb3bdaaaa87257a4376a62dd41 (diff) | |
download | ayatana-indicator-sound-316be08822afec241a5ed1acca16612b87abfcdf.tar.gz ayatana-indicator-sound-316be08822afec241a5ed1acca16612b87abfcdf.tar.bz2 ayatana-indicator-sound-316be08822afec241a5ed1acca16612b87abfcdf.zip |
in volume-control-pulse's update_high_volume_approved_timer(), fix timer interval
-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 874a6ca..bc0fa40 100644 --- a/src/volume-control-pulse.vala +++ b/src/volume-control-pulse.vala @@ -744,7 +744,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 = 1 + ((now - expires_at) / 1000000); + var seconds_left = 1 + ((expires_at - now) / 1000000); _high_volume_approved_timer = Timeout.add_seconds((uint)seconds_left, on_high_volume_timer); } } |