Fix the removed return from commenting out updateElem, undoes unnecessary buggy check from previous commit

This commit is contained in:
Thomas Lynch
2024-08-18 19:57:20 +10:00
parent 90df19cbed
commit ab841ef752
2 changed files with 2 additions and 5 deletions

View File

@ -210,7 +210,7 @@ const powFinished = new Promise((resolve) => {
0, 0,
Math.floor(requiredSec - elapsedSec), Math.floor(requiredSec - elapsedSec),
); //dont show negative time ); //dont show negative time
console.log(`${hps}H/s, ≈${remainingSec}s remaining`); return console.log(`${hps}H/s, ≈${remainingSec}s remaining`);
// return updateElem( // return updateElem(
// ".powstatus", // ".powstatus",
// __('Working, ≈%ss remaining', remainingSec), // __('Working, ≈%ss remaining', remainingSec),
@ -218,9 +218,6 @@ const powFinished = new Promise((resolve) => {
} }
if (finished) return; if (finished) return;
const [workerId, answer] = e.data; const [workerId, answer] = e.data;
if (!answer) {
return console.warn("Worker", workerId, "Returned with undefined answer");
}
console.log( console.log(
"Worker", "Worker",
workerId, workerId,

File diff suppressed because one or more lines are too long