From 77aba53c7ee19aa48bbde9f555beb31de53a68ce Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Wed, 20 Oct 2021 15:26:16 +0200 Subject: [PATCH] fix data representation --- pandora_console/include/functions_reporting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 5b24d9e166..41d8747f83 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -8700,8 +8700,8 @@ function reporting_increment($report, $content) $return['data']['message'] = __('The monitor have no data in this range of dates or monitor type is not numeric'); $return['data']['error'] = true; } else if (is_numeric($old_data) && is_numeric($last_data)) { - $return['data']['old'] = $old_data; - $return['data']['now'] = $last_data; + $return['data']['old'] = round(floatval($old_data), $config['graph_precision']); + $return['data']['now'] = round(floatval($last_data), $config['graph_precision']); $increment = ($old_data - $last_data); if ($increment < 0) {