From 3bc102c33418a62a3efd2144428f63b112ce9165 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Sun, 19 Apr 2026 13:04:05 +0100 Subject: [PATCH] Increase the ETA max cutoff to just under 1,000,000 days, not 100,000. --- src/pv/format/eta.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pv/format/eta.c b/src/pv/format/eta.c index c31d115..36f996e 100644 --- a/src/pv/format/eta.c +++ b/src/pv/format/eta.c @@ -38,9 +38,9 @@ pvdisplay_bytecount_t pv_formatter_eta(pvformatter_args_t args) if (eta < 0) eta = 0; - /* The ETA must be under 100,000 days so it's not too wide. */ - if ((eta / 86400L) >= 100000L) - eta = 100000L * 86400L - 1L; + /* The ETA must be under 1,000,000 days so it's not too wide. */ + if ((eta / 86400L) >= 1000000L) + eta = 1000000L * 86400L - 1L; /* * If the ETA is more than a day, include a day count as well as