Commit 6f757efc authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: add one more minute to account for later reports

parent fa6a1518
...@@ -133,8 +133,8 @@ sub main { ...@@ -133,8 +133,8 @@ sub main {
warn "No bacct information given, finding out the time interval when the pipeline was run on '$this_lsf_farm' ...\n"; warn "No bacct information given, finding out the time interval when the pipeline was run on '$this_lsf_farm' ...\n";
my $offset_died_expression = ($dbc->driver eq 'sqlite') my $offset_died_expression = ($dbc->driver eq 'sqlite')
? "datetime(max(died), '+1 minute')" ? "datetime(max(died), '+2 minutes')"
: "FROM_UNIXTIME(UNIX_TIMESTAMP(max(died))+60)"; : "FROM_UNIXTIME(UNIX_TIMESTAMP(max(died))+120)";
my $sth_times = $dbc->prepare( "SELECT min(born), $offset_died_expression FROM worker WHERE meadow_type='LSF' AND meadow_name='$this_lsf_farm' AND status='DEAD'" ); my $sth_times = $dbc->prepare( "SELECT min(born), $offset_died_expression FROM worker WHERE meadow_type='LSF' AND meadow_name='$this_lsf_farm' AND status='DEAD'" );
$sth_times->execute(); $sth_times->execute();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment