diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 8c70f63392..2c7ea1ffa9 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-04-18 Miguel de Dios + + * include/functions_graph.php: fixed the legend for to show with human + numeric format. + 2011-04-18 Miguel de Dios * include/graphs/pChart/pDraw.class.php: changed for show the some dark diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index bb55a1f4c5..dcaee853d5 100755 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -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) {