Skip to content

Commit

Permalink
Fix: only calculate duration with start/end
Browse files Browse the repository at this point in the history
  • Loading branch information
hyfen committed Aug 4, 2023
1 parent e0f26bb commit f96d111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chronicle/etl/job_log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def job= job
end

def duration
return unless @finished_at
return unless @finished_at && @started_at

@finished_at - @started_at
end
Expand Down

0 comments on commit f96d111

Please sign in to comment.