diff options
author | Struan Donald <struan@exo.org.uk> | 2012-03-27 12:02:59 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-03-27 12:02:59 +0100 |
commit | bdceca8e4c3b575f745d4718a96dbb6ea7cc11e0 (patch) | |
tree | 9f17025b7bca9db81242735393203a9584edcb7a /bin/send-comments | |
parent | e8b4749fa383de584fbec08a10a617613648055e (diff) |
correctly calculate how long since we last failed to send
Diffstat (limited to 'bin/send-comments')
-rwxr-xr-x | bin/send-comments | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/send-comments b/bin/send-comments index df646a682..3a5d1aa47 100755 --- a/bin/send-comments +++ b/bin/send-comments @@ -84,7 +84,7 @@ sub bromley_retry_timeout { my $tz = DateTime::TimeZone->new( name => 'local' ); my $now = DateTime->now( time_zone => $tz ); my $diff = $now - $row->send_fail_timestamp; - if ( $diff->minutes < 30 ) { + if ( $diff->in_units( 'minutes' ) < 30 ) { return 1; } |