1
0
Fork 0
This commit is contained in:
XIEJING 2026-06-16 09:10:37 +00:00 committed by GitHub
commit 243cf22e1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -503,7 +503,12 @@ class NetTuningPlugin(hotplug.Plugin):
if value is None:
return None
hashsize = int(value)
try:
hashsize = int(value)
except ValueError:
log.warning("nf_conntrack_hashsize value '%s' is not integer" % value)
return None
if hashsize >= 0:
if not sim:
self._cmd.write_to_file(self._nf_conntrack_hashsize_path(), hashsize, \