From 482039bb5e93c91851c71a63553072ecebc02262 Mon Sep 17 00:00:00 2001 From: Enol Fernandez Date: Mon, 29 Jul 2024 08:53:58 +0100 Subject: [PATCH] Report hours, not seconds --- egi_notebooks_accounting/eosc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egi_notebooks_accounting/eosc.py b/egi_notebooks_accounting/eosc.py index 7107a65..fc3a60a 100644 --- a/egi_notebooks_accounting/eosc.py +++ b/egi_notebooks_accounting/eosc.py @@ -102,7 +102,7 @@ def update_pod_metric(pod, metrics, flavor_config): user_metrics = metrics.get((user, group), {}) flavor_metric = flavor_config[pod.flavor] flavor_metric_value = user_metrics.get(flavor_metric, 0) - user_metrics[flavor_metric] = flavor_metric_value + pod.wall + user_metrics[flavor_metric] = flavor_metric_value + (pod.wall / (60 * 60)) metrics[(user, group)] = user_metrics