Increase the ETA max cutoff to just under 1,000,000 days, not 100,000.

This commit is contained in:
Andrew Wood
2026-04-19 13:04:05 +01:00
parent d638cd50f4
commit 3bc102c334
+3 -3
View File
@@ -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