Commit b1060899 authored by Kevin Duret's avatar Kevin Duret
Browse files

fix(reporting): fix reporting calculation when downtime actual_end_time is null (#8807)

Refs: MON-5551
parent 553f2301
...@@ -90,7 +90,7 @@ sub getDownTime { ...@@ -90,7 +90,7 @@ sub getDownTime {
if ($row->{"actual_start_time"} < $start) { if ($row->{"actual_start_time"} < $start) {
$row->{"actual_start_time"} = $start; $row->{"actual_start_time"} = $start;
} }
if ($row->{"actual_end_time"} > $end || !defined $row->{"actual_end_time"}) { if (!defined $row->{"actual_end_time"} || $row->{"actual_end_time"} > $end) {
$row->{"actual_end_time"} = $end; $row->{"actual_end_time"} = $end;
} }
......
Supports Markdown
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