Skip to content

Commit

Permalink
CheckStatistics: Show a check interval of zero
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Oct 13, 2023
1 parent 5ad5a82 commit d09f3ff
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions library/Icingadb/Widget/Detail/CheckStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,7 @@ protected function assembleBody(BaseHtmlElement $body)
$intervalLine = new HtmlElement(
'li',
Attributes::create(['class' => 'interval-line']),
new VerticalKeyValue(
t('Interval'),
$checkInterval
? Format::seconds($checkInterval)
: (new EmptyState(t('n. a.')))->setTag('span')
)
new VerticalKeyValue(t('Interval'), Format::seconds($checkInterval))
);

$styleElement->addFor($intervalLine, [
Expand Down

0 comments on commit d09f3ff

Please sign in to comment.