From dcf080ad24fa405c3e5a0fe1d8b8c141b0554f72 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Thu, 27 Oct 2016 15:59:47 +0200 Subject: [PATCH] Added data precision to tree view monitor table (cherry picked from commit c1ff838e4300a74a35fa849116bd62d40c200969) --- pandora_console/include/functions_treeview.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index 78f52ea4c0..4e69636f4c 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;