Skip to content

Commit

Permalink
added last conection stats to stats refresh as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Oink70 committed Dec 2, 2021
1 parent 663da05 commit 980063e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/static/miner_stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function updateWorkerStats() {
$("#statsBalance"+htmlSafeWorkerName).text(statData.workers[w].balance);
$("#statsShares"+htmlSafeWorkerName).text(Math.round(statData.workers[w].currRoundShares * 100) / 100);
$("#statsDiff"+htmlSafeWorkerName).text(statData.workers[w].diff);
$("#statsLastShare"+htmlSafeWorkerName).text(Date(statData.workers[w].lastShare));
$("#statsLastShare"+htmlSafeWorkerName).text(Math.floor(((new Date().getTime()) - (new Date(Math.round(statData.workers[w].lastShare)).getTime())) / 1000));
}
}
function addWorkerToDisplay(name, htmlSafeName, workerObj) {
Expand Down

0 comments on commit 980063e

Please sign in to comment.