Switch virtual memory free to allocated

Avoids incorrect reporting if cache/buffers exceeds normal.
This commit is contained in:
Joshua Boniface 2024-04-19 10:25:33 -04:00
parent 4c6aabec6a
commit 79ad09ae59
1 changed files with 1 additions and 1 deletions

View File

@ -743,7 +743,7 @@ def node_keepalive(logger, config, zkhandler, this_node, netstats):
# Get node performance statistics
this_node.memtotal = int(psutil.virtual_memory().total / 1024 / 1024)
this_node.memused = int(psutil.virtual_memory().used / 1024 / 1024)
this_node.memfree = int(psutil.virtual_memory().free / 1024 / 1024)
this_node.memfree = int(psutil.virtual_memory().available / 1024 / 1024)
this_node.cpuload = round(os.getloadavg()[0], 2)
# Get node network statistics via netstats instance