Commit 5ecfbde0 authored by Mario Hock's avatar Mario Hock
Browse files

Fix: ... still support older versions of "psutil"

parent eac88411
......@@ -255,9 +255,14 @@ if __name__ == "__main__":
if ( args.autologging ):
args.logging = True
## compensate psutil version incompatibilities
num_cpus = psutil.cpu_count()
num_cpus = psutil.NUM_CPUS
## Logging
logging_manager = LoggingManager( psutil.cpu_count(), monitored_nics, helpers.get_sysinfo(), args.environment,
logging_manager = LoggingManager( num_cpus, monitored_nics, helpers.get_sysinfo(), args.environment,
args.comment, args.path, args.autologging, )
if args.logging:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment