diff options
author | Renato Botelho <renato@netgate.com> | 2017-10-16 16:05:58 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-10-16 16:05:58 -0200 |
commit | a2379b77531fd4ef70b333c68f4aa0c7c40fa69e (patch) | |
tree | 2279002984c3aac8e4b349d6cea9ed02cf052c92 | |
parent | 54da96a4239e296eb3d7c79b499909a53929d25d (diff) | |
download | FreeBSD-src-a2379b77531fd4ef70b333c68f4aa0c7c40fa69e.zip FreeBSD-src-a2379b77531fd4ef70b333c68f4aa0c7c40fa69e.tar.gz |
Import patch to fix hostres high CPU usage
Imported from: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209368
-rw-r--r-- | usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c index 8216acc..35e1ca6 100644 --- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c +++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c @@ -479,7 +479,8 @@ again: } else { if (read_len == sizeof(buf)) goto again; - refresh_device_tbl(1); + if (buf[0] == '+' || buf[0] == '-') + refresh_device_tbl(1); } } |