fix: attempts handling

This commit is contained in:
2026-06-25 18:28:07 +08:00
parent 3bb7b5f52c
commit ede80fc8c2
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -463,7 +463,7 @@ while (await new Promise(o => setTimeout(o, 1000, true))) {
let rate = index / uptime;
let remaining = index ? Math.floor((total - index) / rate) : 0;
$('#remainingLabel').innerText = remaining >= 0 ? `${Temporal.Duration.from({ seconds: remaining }).round({ largestUnit: 'hours' }).toLocaleString('en')} (${rate.toFixed(2)}/min)` : '';
$('#remainingLabel').innerText = remaining >= 0 ? `${Temporal.Duration.from({ seconds: remaining }).round({ largestUnit: 'hours' }).toLocaleString('en')} (${(rate * 60).toFixed(2)}/min)` : '';
break;
case 'STANDBY':
$('#send > span.text').innerText = 'Resume';