From ed087d83c2d447ee6e29aabb63a6f0e11fd4626f Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 29 Aug 2023 21:41:44 -0400 Subject: [PATCH] Found cpuload to 2 decimal places --- node-daemon/pvcnoded/util/keepalive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-daemon/pvcnoded/util/keepalive.py b/node-daemon/pvcnoded/util/keepalive.py index 5504382a..9de4830d 100644 --- a/node-daemon/pvcnoded/util/keepalive.py +++ b/node-daemon/pvcnoded/util/keepalive.py @@ -753,7 +753,7 @@ def node_keepalive(logger, config, zkhandler, this_node, monitoring_instance): 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.cpuload = os.getloadavg()[0] + this_node.cpuload = round(os.getloadavg()[0], 2) # Join against running threads if config["enable_hypervisor"]: