diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index 0edc152dda..047be52917 100755 --- a/pandora_console/include/functions_treeview.php +++ b/pandora_console/include/functions_treeview.php @@ -199,16 +199,18 @@ function treeview_printModuleTable($id_module, $server_data = false, $no_head = $data = "" . remove_right_zeros(number_format($last_data["datos"], $config['graph_precision'])) . ""; else - $data = "" . - substr(io_safe_output($last_data['datos']),0,12) . ""; + $data = ui_print_truncate_text(io_safe_output($last_data['datos']), + GENERIC_SIZE_TEXT, true, true, + true, '...', 'white-space: nowrap;'); break; default: if (is_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) . ""; + $data = ui_print_truncate_text(io_safe_output($last_data['datos']), + GENERIC_SIZE_TEXT, true, true, + true, '...', 'white-space: nowrap;'); break; } break; @@ -226,16 +228,18 @@ function treeview_printModuleTable($id_module, $server_data = false, $no_head = $data = "" . remove_right_zeros(number_format($last_data["datos"], $config['graph_precision'])) . ""; else - $data = "" . - substr(io_safe_output($last_data['datos']),0,12) . ""; + $data = ui_print_truncate_text(io_safe_output($last_data['datos']), + GENERIC_SIZE_TEXT, true, true, true, + '...', 'white-space: nowrap;'); break; default: if (is_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) . ""; + $data = ui_print_truncate_text(io_safe_output($last_data['datos']), + GENERIC_SIZE_TEXT, true, true, true, + '...', 'white-space: nowrap;'); break; } }