From e8d6d69806b25e8d9199f24dec6f3943fb86def1 Mon Sep 17 00:00:00 2001 From: Andre Merzky Date: Wed, 20 Mar 2024 09:14:57 +0100 Subject: [PATCH] avoid broken stats --- src/radical/analytics/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/radical/analytics/session.py b/src/radical/analytics/session.py index 1133e9d..e0b34d9 100644 --- a/src/radical/analytics/session.py +++ b/src/radical/analytics/session.py @@ -1030,7 +1030,7 @@ def utilization(self, metrics, rtype='cpu', udurations=None): for box in provided['total'][pid]: stats_abs['total'] += (box[1] - box[0]) * \ (box[3] - box[2] + 1) - total = stats_abs['total'] + total = (max(stats_abs['total'], 1) for metric in metrics: if isinstance(metric, list):