Skip to content

Commit

Permalink
CheckStatistics: Fix incorrect check interval detection
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Jul 24, 2024
1 parent 8611fa5 commit e7a8f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icingadb/Widget/Detail/CheckStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ protected function getCheckInterval(): int
return $this->object->check_interval;
}

$delay = ($this->object->state->execution_time + $this->object->state->latency) / 1000 + 5;
$delay = ($this->object->state->execution_time + $this->object->state->latency / 1000) + 5;
$interval = $this->object->state->next_check->getTimestamp()
- $this->object->state->last_update->getTimestamp();

Expand Down

0 comments on commit e7a8f88

Please sign in to comment.