From d28fb71f57bd3fea9dd0961c93cfdd7454ff9d8a Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 24 Jan 2024 14:40:40 -0500 Subject: [PATCH] Fix incorrect variable set --- daemon-common/cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon-common/cluster.py b/daemon-common/cluster.py index 9f84ac7f..a416e43f 100644 --- a/daemon-common/cluster.py +++ b/daemon-common/cluster.py @@ -1201,7 +1201,7 @@ def get_resource_metrics(zkhandler): try: user_time = vm["vcpu_stats"]["user_time"] / 1000000 except Exception: - cpu_time = 0 + user_time = 0 output_lines.append( f"pvc_vm_vcpus_user_time{{vm=\"{vm['name']}\"}} {user_time}" )