diff options
author | Dmitrijs Goloscapovs <dmitrijs.goloscapovs@zabbix.com> | 2022-01-12 05:16:52 +0300 |
---|---|---|
committer | Dmitrijs Goloscapovs <dmitrijs.goloscapovs@zabbix.com> | 2022-01-12 11:00:51 +0300 |
commit | ec8050705457bcaecbc9630ca3bb5bc6653e38d5 (patch) | |
tree | 5d59b51b97317c81f82a9fb92f0a4bd618b5bbfa /src | |
parent | d05720ae139675416377a5aaf5c66568208633a7 (diff) |
...G...... [ZBX-20204] fixed range check for perfcounters in agent2 on windows
Merge in ZBX/zabbix from feature/ZBX-20204-5.0 to release/5.0
* commit '01ca860b9cb0d12cc2a157fbf52c402deb6ea2ea':
...G...... [ZBX-20204] fixed range check for perfcounters in agent2 on windows
(cherry picked from commit 3aa9eafed47572f44746268f82751369a3810b80)
Diffstat (limited to 'src')
-rw-r--r-- | src/go/plugins/windows/perfmon/perfmon.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/plugins/windows/perfmon/perfmon.go b/src/go/plugins/windows/perfmon/perfmon.go index 9831c628384..5a8b8a0b4f0 100644 --- a/src/go/plugins/windows/perfmon/perfmon.go +++ b/src/go/plugins/windows/perfmon/perfmon.go @@ -226,7 +226,7 @@ func (p *Plugin) Export(key string, params []string, ctx plugin.ContextProvider) if interval, err = strconv.ParseInt(params[1], 10, 32); err != nil { return nil, errors.New("Invalid second parameter.") } - if interval < 1 || interval >= maxInterval { + if interval < 1 || interval > maxInterval { return nil, errors.New("Interval out of range.") } } |