minor fix
This commit is contained in:
+3
-3
@@ -461,9 +461,9 @@ while (await new Promise(o => setTimeout(o, 1000, true))) {
|
||||
let uptime = await Rpc2.invoke('uptime').catch(() => 0);
|
||||
$('#uptimeLabel').innerText = Temporal.Duration.from({ seconds: uptime }).round({ largestUnit: 'hours' }).toLocaleString('en', { style: 'digital' });
|
||||
|
||||
let rate = count / uptime;
|
||||
let remaining = count ? Math.floor((total - count) / rate) : 0;
|
||||
$('#remainingLabel').innerText = remaining >= 0 ? `${Temporal.Duration.from({ seconds: remaining }).round({ largestUnit: 'hours' }).toLocaleString('en')} (${(rate * 60).toFixed(2)}/min)` : '';
|
||||
let rate = done / uptime;
|
||||
let remaining = rate > 0 ? Math.floor((total - count) / rate) : 0;
|
||||
$('#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';
|
||||
|
||||
Reference in New Issue
Block a user