diff --git a/scripts/lsf_report.pl b/scripts/lsf_report.pl index f4e491145198107e263efb562f262907769f26d4..05d819c9021d0f7b669890b62e19cc91eff69eb2 100755 --- a/scripts/lsf_report.pl +++ b/scripts/lsf_report.pl @@ -56,7 +56,7 @@ sub main { warn "No bacct information given, finding out the time interval when the pipeline was run...\n"; - my $sth_times = $dbc->prepare( 'SELECT min(born), max(died) FROM worker WHERE meadow_type="LSF"' ); + my $sth_times = $dbc->prepare( 'SELECT min(born), max(died) FROM worker WHERE meadow_type="LSF" AND status="DEAD"' ); $sth_times->execute(); my ($from_time, $to_time) = $sth_times->fetchrow_array(); $sth_times->finish();