Add unit to legend left in graph of interface information, tiquet: #2194

This commit is contained in:
m-lopez-f 2015-05-06 13:03:34 +02:00
parent 28a7b8d0d2
commit 277eb655a1
2 changed files with 2 additions and 2 deletions

View File

@ -1382,7 +1382,7 @@ function graphic_combined_module ($module_list, $weight_list, $period,
$height, $color, $module_name_list, $long_index, $height, $color, $module_name_list, $long_index,
ui_get_full_url("images/image_problem.opaque.png", false, false, false), ui_get_full_url("images/image_problem.opaque.png", false, false, false),
"", "", $water_mark, $config['fontpath'], $fixed_font_size, "", "", $water_mark, $config['fontpath'], $fixed_font_size,
"", $ttl, $homeurl, $background_color); $unit, $ttl, $homeurl, $background_color);
break; break;
case CUSTOM_GRAPH_STACKED_LINE: case CUSTOM_GRAPH_STACKED_LINE:
return stacked_line_graph($flash_charts, $graph_values, return stacked_line_graph($flash_charts, $graph_values,

View File

@ -167,7 +167,7 @@ $interface_traffic_modules = array(
array_values($interface_traffic_modules), array_values($interface_traffic_modules),
$config['homeurl'], $config['homeurl'],
array_keys($interface_traffic_modules), array_keys($interface_traffic_modules),
array_fill(0, count($interface_traffic_modules),"bytes/s"), array("bytes"),
false); false);
echo '</div>'; echo '</div>';