diff options
author | Byron Jones <bjones@mozilla.com> | 2013-03-26 05:47:14 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-03-26 05:47:14 +0100 |
commit | f78bc351db35dd8209240eb89bbf45d69e06c0ee (patch) | |
tree | 6d2ff6b8966c6be1434d8d1349fa14ccdf6ab638 /extensions/Push/lib/Backoff.pm | |
parent | c7edbac0c7cc07cb5019fe6e14ca5608cf877339 (diff) | |
download | bugzilla-f78bc351db35dd8209240eb89bbf45d69e06c0ee.tar.gz bugzilla-f78bc351db35dd8209240eb89bbf45d69e06c0ee.tar.xz |
Bug 854770: fix issues with bugzilla-push
Diffstat (limited to 'extensions/Push/lib/Backoff.pm')
-rw-r--r-- | extensions/Push/lib/Backoff.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/Push/lib/Backoff.pm b/extensions/Push/lib/Backoff.pm index c0ea15a59..05ee0a775 100644 --- a/extensions/Push/lib/Backoff.pm +++ b/extensions/Push/lib/Backoff.pm @@ -76,7 +76,7 @@ sub inc { my $attempts = $self->attempts + 1; my $seconds = $attempts <= 4 ? 5 ** $attempts : 15 * 60; - my ($date) = $dbh->selectrow_array("SELECT NOW() + " . $dbh->sql_interval($seconds, 'SECOND')); + my ($date) = $dbh->selectrow_array("SELECT " . $dbh->sql_date_math('NOW()', '+', $seconds, 'SECOND')); $self->{next_attempt_ts} = $date; $self->{attempts} = $attempts; |