OS and Case minor change
This commit is contained in:
parent
61ed2159be
commit
b3928f9b8e
1
agent.py
1
agent.py
@ -27,6 +27,7 @@ def human_size(bytes, units=units_map):
|
|||||||
|
|
||||||
class ENV:
|
class ENV:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
self.os = psutil.sys.platform
|
||||||
self.hostname = psutil.os.uname().nodename
|
self.hostname = psutil.os.uname().nodename
|
||||||
self.cpu_number = psutil.cpu_count(logical=False)
|
self.cpu_number = psutil.cpu_count(logical=False)
|
||||||
self.vcpu = psutil.cpu_count()
|
self.vcpu = psutil.cpu_count()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user