From 277eb655a16330b92fb9c1d9e7a5f1ba840b29a9 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Wed, 6 May 2015 13:03:34 +0200 Subject: [PATCH] Add unit to legend left in graph of interface information, tiquet: #2194 --- pandora_console/include/functions_graph.php | 2 +- .../operation/agentes/interface_traffic_graph_win.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 557c732d43..5c9a3852f7 100755 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -1382,7 +1382,7 @@ function graphic_combined_module ($module_list, $weight_list, $period, $height, $color, $module_name_list, $long_index, ui_get_full_url("images/image_problem.opaque.png", false, false, false), "", "", $water_mark, $config['fontpath'], $fixed_font_size, - "", $ttl, $homeurl, $background_color); + $unit, $ttl, $homeurl, $background_color); break; case CUSTOM_GRAPH_STACKED_LINE: return stacked_line_graph($flash_charts, $graph_values, diff --git a/pandora_console/operation/agentes/interface_traffic_graph_win.php b/pandora_console/operation/agentes/interface_traffic_graph_win.php index 2806369664..4ee6dae6b0 100644 --- a/pandora_console/operation/agentes/interface_traffic_graph_win.php +++ b/pandora_console/operation/agentes/interface_traffic_graph_win.php @@ -167,7 +167,7 @@ $interface_traffic_modules = array( array_values($interface_traffic_modules), $config['homeurl'], array_keys($interface_traffic_modules), - array_fill(0, count($interface_traffic_modules),"bytes/s"), + array("bytes"), false); echo '';