diff options
author | Lorenz <12514511+RincewindsHat@users.noreply.github.com> | 2022-09-09 16:56:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 16:56:49 +0200 |
commit | cca769b3155c680b7ec637782ce0ffe539aa482c (patch) | |
tree | fe37883c9bd1ad531fc1d9d48b6a9f439727126e /plugins/check_snmp.c | |
parent | b82a1667fe5c063bc9a174a76c665b27bf34b117 (diff) | |
parent | 3ad5fe9d84138da1451429bfac3b9b4024393d25 (diff) | |
download | monitoring-plugins-cca769b3155c680b7ec637782ce0ffe539aa482c.tar.gz |
Merge branch 'master' into check_load-compiler_warnings
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r-- | plugins/check_snmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index bd13e579..2601ccd8 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
@@ -376,7 +376,7 @@ main (int argc, char **argv) | |||
376 | } | 376 | } |
377 | } | 377 | } |
378 | 378 | ||
379 | for (line=0, i=0; line < chld_out.lines; line++, i++) { | 379 | for (line=0, i=0; line < chld_out.lines && i < numoids ; line++, i++) { |
380 | if(calculate_rate) | 380 | if(calculate_rate) |
381 | conv = "%.10g"; | 381 | conv = "%.10g"; |
382 | else | 382 | else |