Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitrijs Goloscapovs <dmitrijs.goloscapovs@zabbix.com>2022-01-12 05:16:52 +0300
committerDmitrijs Goloscapovs <dmitrijs.goloscapovs@zabbix.com>2022-01-12 11:02:38 +0300
commit5baceb1e3731e638dbc4b41cfb52a3fa4c75083d (patch)
tree1613e05cd04f9377093b0a3574aab57dc08874fb /src/go/plugins
parent0a488ff44a0fbce3a33870a8bd3c6254ba4a54e2 (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/go/plugins')
-rw-r--r--src/go/plugins/windows/perfmon/perfmon.go2
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.")
}
}