summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2010-06-16 15:09:45 +0000
committermav <mav@FreeBSD.org>2010-06-16 15:09:45 +0000
commit0df344c42a61f9606dffa8573cb075f48ae549fa (patch)
tree817e56770e5e8dbc1b8239f1e2681f10d4bc6dc4 /usr.sbin/pw
parentfc8e5640fde2885c20b71d87518816d05c10ea3a (diff)
downloadFreeBSD-src-0df344c42a61f9606dffa8573cb075f48ae549fa.zip
FreeBSD-src-0df344c42a61f9606dffa8573cb075f48ae549fa.tar.gz
Freq sysctls are quite heavy due to set of malloc()/free() calls. Avoid
reading current frequency on every period. Instead do it only after changing and periodically from time to time if somebody else change it. Also dynamically decrease sampling frequency up to 4 times on inactivity,
Diffstat (limited to 'usr.sbin/pw')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud