From 87c41f5cffa364e9659a2870a682797ade131551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc?= <1536036+zoic21@users.noreply.github.com> Date: Mon, 2 Dec 2024 17:01:43 +0100 Subject: [PATCH] Update cmd.class.php --- core/class/cmd.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/class/cmd.class.php b/core/class/cmd.class.php index 9cd32b2c18..0a7cc894bf 100644 --- a/core/class/cmd.class.php +++ b/core/class/cmd.class.php @@ -1757,9 +1757,9 @@ public function toHtml($_version = 'dashboard', $_options = '') { $replace['#minHistoryValue#'] = round(intval($replace['#state#']), 1); $replace['#maxHistoryValue#'] = round(intval($replace['#state#']), 1); } else { - $replace['#averageHistoryValue#'] = round($historyStatistique['avg'], 1); - $replace['#minHistoryValue#'] = round($historyStatistique['min'], 1); - $replace['#maxHistoryValue#'] = round($historyStatistique['max'], 1); + $replace['#averageHistoryValue#'] = round(intval($historyStatistique['avg']), 1); + $replace['#minHistoryValue#'] = round(intval($historyStatistique['min']), 1); + $replace['#maxHistoryValue#'] = round(intval($historyStatistique['max']), 1); } $startHist = date('Y-m-d H:i:s', strtotime(date('Y-m-d H:i:s') . ' -' . config::byKey('historyCalculTendance') . ' hour')); $tendance = $this->getTendance($startHist, date('Y-m-d H:i:s'));