Skip to content

Commit

Permalink
bug fix miner.js (#22)
Browse files Browse the repository at this point in the history
set let average_hashrate = 0 otherwise Total Average Hashrate will show NaN
  • Loading branch information
kevin070982 authored and Command committed Jan 23, 2020
1 parent 8afc15b commit c91ef50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/js/miner.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ xhr.onload = function () {

agents = document.getElementById("agents");

let average_hashrate, realtime_hashrate = 0;
let average_hashrate = 0, realtime_hashrate = 0;

for (const agent in miner.agents) {
let name_node = document.createElement("li");
Expand Down Expand Up @@ -54,4 +54,4 @@ function registerPayment() {
}
};
xhr.send(json);
}
}

0 comments on commit c91ef50

Please sign in to comment.