Skip to content

Commit

Permalink
CheckStatistics: Don't attempt to visualize next checks..
Browse files Browse the repository at this point in the history
..if both active and passive checks are disabled.

fixes #930
  • Loading branch information
nilmerg committed Nov 14, 2023
1 parent 012b3a1 commit 0505490
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 @@ -68,7 +68,7 @@ protected function assembleBody(BaseHtmlElement $body)
$now = time();
$executionTime = ($this->object->state->execution_time / 1000) + ($this->object->state->latency / 1000);

$nextCheckTime = $this->object->state->next_check !== null
$nextCheckTime = $this->object->state->next_check !== null && ! $this->isChecksDisabled()
? $this->object->state->next_check->getTimestamp()
: null;
if ($this->object->state->is_overdue) {
Expand Down

0 comments on commit 0505490

Please sign in to comment.