diff options
author | Sergey Simonenko <sergey.simonenko@zabbix.com> | 2022-01-04 19:12:50 +0300 |
---|---|---|
committer | Michael Veksler <Mihails.Vekslers@zabbix.com> | 2022-01-04 19:12:50 +0300 |
commit | 08758fcc9fb98122427be760abea3858ea3ab231 (patch) | |
tree | dd534f2ff7fe520a705e49638397689fc765d767 /src/libs | |
parent | 61b8038fb54a54db54ac45efa77712751e4d58a2 (diff) | |
parent | 5edc2be3434ad79a3cc19f93ce273bcc614d5ed5 (diff) |
........S. [ZBX-19456] fixed zero timeshift
* commit '5edc2be3434ad79a3cc19f93ce273bcc614d5ed5':
........S. [ZBX-19456] fixed zero timeshift
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/zbxcommon/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/zbxcommon/time.c b/src/libs/zbxcommon/time.c index 5c305e9227b..9d3160feb51 100644 --- a/src/libs/zbxcommon/time.c +++ b/src/libs/zbxcommon/time.c @@ -71,7 +71,7 @@ int zbx_tm_parse_period(const char *period, size_t *len, int *multiplier, zbx_ti for (ptr = period; 0 != isdigit(*ptr); ptr++) ; - if (FAIL == is_uint_n_range(period, ptr - period, multiplier, sizeof(*multiplier), 1, UINT32_MAX)) + if (FAIL == is_uint_n_range(period, ptr - period, multiplier, sizeof(*multiplier), 0, UINT32_MAX)) { *error = zbx_strdup(*error, "invalid period multiplier"); return FAIL; |