From 58dc4aee0d1d245c1ad790366fb8d79696e27b0e Mon Sep 17 00:00:00 2001 From: Calvo Date: Tue, 16 Mar 2021 13:37:57 +0100 Subject: [PATCH] General report exponent prefix shows with blankspace --- pandora_console/include/functions_reporting.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 8e0aafe5fb..ed767a273f 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -8589,7 +8589,7 @@ function reporting_general($report, $content) if (!is_numeric($data_res[$index])) { $return['data'][$name_agent][$mod_name] = $data_res[$index]; } else { - $return['data'][$name_agent][$mod_name] = format_for_graph($data_res[$index], 2, '.', ',', $divisor, $unit); + $return['data'][$name_agent][$mod_name] = format_for_graph($data_res[$index], 2, '.', ',', $divisor, ' '.$unit); } } break; @@ -8610,7 +8610,7 @@ function reporting_general($report, $content) if ($change_min) { $return['min']['value'] = $val; - $return['min']['formated_value'] = format_for_graph($val, 2, '.', ',', $divisor, $unit); + $return['min']['formated_value'] = format_for_graph($val, 2, '.', ',', $divisor, ' '.$unit); $return['min']['agent'] = $ag_name; $return['min']['module'] = $mod_name; } @@ -8626,7 +8626,7 @@ function reporting_general($report, $content) if ($change_max) { $return['max']['value'] = $val; - $return['max']['formated_value'] = format_for_graph($val, 2, '.', ',', $divisor, $unit); + $return['max']['formated_value'] = format_for_graph($val, 2, '.', ',', $divisor, ' '.$unit); $return['max']['agent'] = $ag_name; $return['max']['module'] = $mod_name; } @@ -8652,7 +8652,7 @@ function reporting_general($report, $content) if ($change_min) { $return['min']['value'] = $data_res[$index]; - $return['min']['formated_value'] = format_for_graph($data_res[$index], 2, '.', ',', $divisor, $unit); + $return['min']['formated_value'] = format_for_graph($data_res[$index], 2, '.', ',', $divisor, ' '.$unit); $return['min']['agent'] = $ag_name; $return['min']['module'] = $mod_name; } @@ -8668,7 +8668,7 @@ function reporting_general($report, $content) if ($change_max) { $return['max']['value'] = $data_res[$index]; - $return['max']['formated_value'] = format_for_graph($data_res[$index], 2, '.', ',', $divisor, $unit); + $return['max']['formated_value'] = format_for_graph($data_res[$index], 2, '.', ',', $divisor, ' '.$unit); $return['max']['agent'] = $ag_name; $return['max']['module'] = $mod_name; } @@ -8802,7 +8802,7 @@ function reporting_general($report, $content) $data['formated_value'][] = $val; } else { $data['value'][] = $val; - $data['formated_value'][] = format_for_graph($val, 2, '.', ',', $divisor, $units[$i]); + $data['formated_value'][] = format_for_graph($val, 2, '.', ',', $divisor, ' '.$units[$i]); } } } @@ -8831,7 +8831,7 @@ function reporting_general($report, $content) $data['formated_value'] = $d; } else { $data['value'] = $d; - $data['formated_value'] = format_for_graph($d, 2, '.', ',', $divisor, $units[$i]); + $data['formated_value'] = format_for_graph($d, 2, '.', ',', $divisor, ' '.$units[$i]); } } }