Skip to content

Commit

Permalink
Update cmd.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Dec 2, 2024
1 parent 4bea7ea commit 87c41f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/class/cmd.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 87c41f5

Please sign in to comment.