Fixed bug: bad precision in post_process parameter. Ticket #1326.
This commit is contained in:
parent
965c71484b
commit
d855a951de
|
@ -259,6 +259,11 @@ UPDATE FROM `network_component` SET `post_process`= 0.000000115740741 WHERE `id_
|
|||
UPDATE FROM `network_component` SET `unit`= 'day' WHERE `id_nc`=53;
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- Table `network_component`
|
||||
-- Table `tnetwork_component`
|
||||
-- ---------------------------------------------------------------------
|
||||
ALTER TABLE `tnetwork_component` MODIFY COLUMN `post_process` DOUBLE(18,15) DEFAULT 0;
|
||||
ALTER TABLE `tnetwork_component` MODIFY COLUMN `post_process` DOUBLE(24,15) DEFAULT 0;
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- Table `tagente_modulo`
|
||||
-- ---------------------------------------------------------------------
|
||||
ALTER TABLE `tagente_modulo` MODIFY COLUMN `post_process` DOUBLE(24,15) DEFAULT 0;
|
||||
|
|
|
@ -85,7 +85,13 @@ $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');
|
||||
$post_process = (float) get_parameter('post_process');
|
||||
|
||||
// Don't read as (float) because it lost it's decimals when put into MySQL
|
||||
// where are very big and PHP uses scientific notation, p.e:
|
||||
// 1.23E-10 is 0.000000000123
|
||||
|
||||
$post_process = (string) get_parameter ('post_process', 0.0);
|
||||
|
||||
$unit = (string) get_parameter('unit');
|
||||
$id = (int) get_parameter ('id');
|
||||
$wizard_level = get_parameter ('wizard_level', 'nowizard');
|
||||
|
|
|
@ -203,7 +203,7 @@ CREATE TABLE IF NOT EXISTS `tagente_modulo` (
|
|||
`plugin_pass` text,
|
||||
`plugin_parameter` text,
|
||||
`id_plugin` int(10) default '0',
|
||||
`post_process` double(18,15) default 0,
|
||||
`post_process` double(24,15) default 0,
|
||||
`prediction_module` bigint(14) default '0',
|
||||
`max_timeout` int(4) unsigned default '0',
|
||||
`max_retries` int(4) unsigned default '0',
|
||||
|
@ -707,7 +707,7 @@ CREATE TABLE IF NOT EXISTS `tnetwork_component` (
|
|||
`custom_string_3` text,
|
||||
`custom_integer_1` int(10) default 0,
|
||||
`custom_integer_2` int(10) default 0,
|
||||
`post_process` double(18,15) default 0,
|
||||
`post_process` double(24,15) default 0,
|
||||
`unit` text,
|
||||
`wizard_level` enum('basic','advanced','nowizard') default 'nowizard',
|
||||
`macros` text,
|
||||
|
|
Loading…
Reference in New Issue