diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index e7c62edde8..48efaa2e78 100755 --- a/pandora_console/include/functions_treeview.php +++ b/pandora_console/include/functions_treeview.php @@ -194,13 +194,13 @@ function treeview_printModuleTable($id_module, $server_data = false, $no_head = $data = "" . human_milliseconds_to_string($last_data['datos']) . ""; else if (is_numeric($last_data["datos"])) - $data = "" . format_numeric($last_data["datos"]) . ""; + $data = "" . remove_right_zeros(number_format($last_data["datos"], $config['graph_precision'])) . ""; else $data = "" . substr(io_safe_output($last_data['datos']),0,12) . ""; break; default: if (is_numeric($last_data["datos"])) - $data = "" . format_numeric($last_data["datos"]) . ""; + $data = "" . remove_right_zeros(number_format($last_data["datos"], $config['graph_precision'])) . ""; else $data = "" . substr(io_safe_output($last_data['datos']),0,12) . ""; break; @@ -216,13 +216,13 @@ function treeview_printModuleTable($id_module, $server_data = false, $no_head = $data = "" . human_milliseconds_to_string($last_data['datos']) . ""; else if (is_numeric($last_data["datos"])) - $data = "" . format_numeric($last_data["datos"]) . ""; + $data = "" . remove_right_zeros(number_format($last_data["datos"], $config['graph_precision'])) . ""; else $data = "" . substr(io_safe_output($last_data['datos']),0,12) . ""; break; default: if (is_numeric($last_data["datos"])) - $data = "" . format_numeric($last_data["datos"]) . ""; + $data = "" . remove_right_zeros(number_format($last_data["datos"], $config['graph_precision'])) . ""; else $data = "" . substr(io_safe_output($last_data['datos']),0,12) . ""; break;