2011-04-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_graph.php: fixed the legend for to show with human numeric format. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4245 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e7e394009d
commit
3fbbe41b4c
|
@ -1,3 +1,8 @@
|
|||
2011-04-18 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_graph.php: fixed the legend for to show with human
|
||||
numeric format.
|
||||
|
||||
2011-04-18 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/graphs/pChart/pDraw.class.php: changed for show the some dark
|
||||
|
|
|
@ -291,8 +291,8 @@ function grafico_modulo_sparse2 ($agent_module_id, $period, $show_events,
|
|||
if($show_alerts) {
|
||||
$legend['alert'] = __('Alerts');
|
||||
}
|
||||
$legend['max'] = __('Max') . ' (' . $max_value . ')';
|
||||
$legend['min'] = __('Min') . ' (' . $min_value . ')';
|
||||
$legend['max'] = __('Max') . ' (' .format_for_graph($max_value) . ')';
|
||||
$legend['min'] = __('Min') . ' (' . format_for_graph($min_value) . ')';
|
||||
$legend['baseline'] = __('Baseline');
|
||||
|
||||
$flash_chart = $config['flash_charts'];
|
||||
|
@ -573,6 +573,11 @@ function graphic_combined_module2 ($module_list, $weight_list, $period, $width,
|
|||
|
||||
//Add the max, min and avg in the legend
|
||||
$avg = round($avg / $countAvg, 1);
|
||||
|
||||
$min = format_for_graph($min);
|
||||
$max = format_for_graph($max);
|
||||
$avg = format_for_graph($avg);
|
||||
|
||||
$module_name_list[$i] .= " (".__("Max"). ":$max, ".__("Min"). ":$min, ". __("Avg"). ": $avg)";
|
||||
|
||||
if ($weight_list[$i] != 1) {
|
||||
|
|
Loading…
Reference in New Issue