diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d7721e9b45..70252f7df2 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-02-27 Vanessa Gil + + * godmode/modules/manage_network_components.php: Fixed bug: values max and min + saved are integers instead of float. + 2012-02-27 Miguel de Dios * include/graphs/functions_pchart.php: fixed when the var for $colors is a diff --git a/pandora_console/godmode/modules/manage_network_components.php b/pandora_console/godmode/modules/manage_network_components.php index 1a087d0e98..c15ae26d0f 100644 --- a/pandora_console/godmode/modules/manage_network_components.php +++ b/pandora_console/godmode/modules/manage_network_components.php @@ -49,11 +49,11 @@ $plugin_parameter = (string) get_parameter ('plugin_parameter'); $max_timeout = (int) get_parameter ('max_timeout'); $id_modulo = (int) get_parameter ('id_component_type'); $id_plugin = (int) get_parameter ('id_plugin'); -$min_warning = (int) get_parameter ('min_warning'); -$max_warning = (int) get_parameter ('max_warning'); +$min_warning = (float) get_parameter ('min_warning'); +$max_warning = (float) get_parameter ('max_warning'); $str_warning = (string) get_parameter ('str_warning'); -$min_critical = (int) get_parameter ('min_critical'); -$max_critical = (int) get_parameter ('max_critical'); +$min_critical = (float) get_parameter ('min_critical'); +$max_critical = (float) get_parameter ('max_critical'); $str_critical = (string) get_parameter ('str_critical'); $ff_event = (int) get_parameter ('ff_event'); $history_data = (bool) get_parameter ('history_data');