diff options
author | Artjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com> | 2021-11-22 16:42:10 +0300 |
---|---|---|
committer | Artjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com> | 2021-11-22 16:42:19 +0300 |
commit | 66b203222d1166da14fa08d7973766b2af6cdfeb (patch) | |
tree | 7d434553c0b18a7c1e4e2e341be662931a1df827 /tests/libs/zbxserver/evaluate_percentage_deviations_in_remainder.c | |
parent | 54105f1f77385956938d52ff914e751be9da24e7 (diff) |
........S. [ZBXNEXT-6955] fixed deviations value type to be double
Diffstat (limited to 'tests/libs/zbxserver/evaluate_percentage_deviations_in_remainder.c')
-rw-r--r-- | tests/libs/zbxserver/evaluate_percentage_deviations_in_remainder.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/libs/zbxserver/evaluate_percentage_deviations_in_remainder.c b/tests/libs/zbxserver/evaluate_percentage_deviations_in_remainder.c index 100f94fef0a..2cb748f15a1 100644 --- a/tests/libs/zbxserver/evaluate_percentage_deviations_in_remainder.c +++ b/tests/libs/zbxserver/evaluate_percentage_deviations_in_remainder.c @@ -80,8 +80,7 @@ void zbx_mock_test_entry(void **state) int start_detect_period, end_detect_period, detect_period_season_shift, err, detect_period, start_evaluate_period, end_evaluate_period, evaluate_seconds = 0, evaluate_nvalues = 0; - zbx_uint64_t deviations_count; - double result; + double deviations_count, result; char *error = NULL, *evaluate_period = NULL; const char *params, *dev_alg = NULL; DC_ITEM item; @@ -105,7 +104,7 @@ void zbx_mock_test_entry(void **state) item.itemid = ds_item->itemid; item.value_type = ds_item->value_type; - deviations_count = zbx_mock_get_parameter_uint64("in.deviations_count"); + deviations_count = zbx_mock_get_parameter_float("in.deviations_count"); dev_alg = zbx_mock_get_parameter_string("in.dev_alg"); handle = zbx_mock_get_parameter_handle("in"); zbx_vcmock_set_time(handle, "time"); |