diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2020-09-17 11:48:11 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2020-09-17 11:49:24 +0300 |
commit | d2b0832cfc7741136ba3fd33b97ddedef00a3b82 (patch) | |
tree | e7154b4857be34f80a8f11dda3ee0d7b946bda7b /include/zbxtrends.h | |
parent | 414633c07da2ce27f92de3278fa532a4c1dc3b66 (diff) |
........S. [ZBXNEXT-6140] fixed possible trendavg function value overflow and added trendsum function overflow handling
Diffstat (limited to 'include/zbxtrends.h')
-rw-r--r-- | include/zbxtrends.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/zbxtrends.h b/include/zbxtrends.h index 7efec55a7a1..2a17366f58a 100644 --- a/include/zbxtrends.h +++ b/include/zbxtrends.h @@ -28,11 +28,11 @@ int zbx_trends_parse_base(const char *params, zbx_time_unit_t *base, char **erro int zbx_trends_parse_range(int from, const char *period, const char *period_shift, int *start, int *end, char **error); -int zbx_trends_eval_avg(const char *table, zbx_uint64_t itemid, int start, int end, double *value); -int zbx_trends_eval_count(const char *table, zbx_uint64_t itemid, int start, int end, double *value); -int zbx_trends_eval_delta(const char *table, zbx_uint64_t itemid, int start, int end, double *value); -int zbx_trends_eval_max(const char *table, zbx_uint64_t itemid, int start, int end, double *value); -int zbx_trends_eval_min(const char *table, zbx_uint64_t itemid, int start, int end, double *value); -int zbx_trends_eval_sum(const char *table, zbx_uint64_t itemid, int start, int end, double *value); +int zbx_trends_eval_avg(const char *table, zbx_uint64_t itemid, int start, int end, double *value, char **error); +int zbx_trends_eval_count(const char *table, zbx_uint64_t itemid, int start, int end, double *value, char **error); +int zbx_trends_eval_delta(const char *table, zbx_uint64_t itemid, int start, int end, double *value, char **error); +int zbx_trends_eval_max(const char *table, zbx_uint64_t itemid, int start, int end, double *value, char **error); +int zbx_trends_eval_min(const char *table, zbx_uint64_t itemid, int start, int end, double *value, char **error); +int zbx_trends_eval_sum(const char *table, zbx_uint64_t itemid, int start, int end, double *value, char **error); #endif |