Skip to content

Commit 87c41f5

Browse files
authored
Update cmd.class.php
1 parent 4bea7ea commit 87c41f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/class/cmd.class.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1757,9 +1757,9 @@ public function toHtml($_version = 'dashboard', $_options = '') {
17571757
$replace['#minHistoryValue#'] = round(intval($replace['#state#']), 1);
17581758
$replace['#maxHistoryValue#'] = round(intval($replace['#state#']), 1);
17591759
} else {
1760-
$replace['#averageHistoryValue#'] = round($historyStatistique['avg'], 1);
1761-
$replace['#minHistoryValue#'] = round($historyStatistique['min'], 1);
1762-
$replace['#maxHistoryValue#'] = round($historyStatistique['max'], 1);
1760+
$replace['#averageHistoryValue#'] = round(intval($historyStatistique['avg']), 1);
1761+
$replace['#minHistoryValue#'] = round(intval($historyStatistique['min']), 1);
1762+
$replace['#maxHistoryValue#'] = round(intval($historyStatistique['max']), 1);
17631763
}
17641764
$startHist = date('Y-m-d H:i:s', strtotime(date('Y-m-d H:i:s') . ' -' . config::byKey('historyCalculTendance') . ' hour'));
17651765
$tendance = $this->getTendance($startHist, date('Y-m-d H:i:s'));

0 commit comments

Comments
 (0)