From 8511acdf5759f39227e699a41aa508b6ace0e305 Mon Sep 17 00:00:00 2001 From: vgilc Date: Mon, 27 Feb 2012 12:52:38 +0000 Subject: [PATCH] 2012-02-27 Vanessa Gil * godmode/modules/manage_network_components.php: Fixed bug: values max and min saved are integers instead of float. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5651 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../godmode/modules/manage_network_components.php | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) 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');