From 33327258d1a22a87c837e98b9cbbcba7345d939e Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sat, 7 Sep 2024 15:13:42 +0200 Subject: [PATCH] Cap time until full at 1E9 seconds --- process_queue | 1 + 1 file changed, 1 insertion(+) diff --git a/process_queue b/process_queue index 85c17b2..1896e2a 100644 --- a/process_queue +++ b/process_queue @@ -76,6 +76,7 @@ class DiskFullPredictor: future_growth = current_usable_bytes / current_used_bytes tuf = math.log(future_growth) / math.log(historic_growth) * (now - lts.data[first_i][0]) tuf = max(tuf, now - lts.data[first_i][0]) + tuf = min(tuf, 1E9) desc = {**lts.description, "measure": "time_until_disk_full", "node": node,