mirror of https://github.com/BTCPrivate/z-nomp.git
Fix ReferenceError: Can't find variable: algos
This commit is contained in:
parent
6d2672105a
commit
b98dd31d05
|
@ -28,7 +28,7 @@ $(function(){
|
|||
var statsSource = new EventSource("/api/live_stats");
|
||||
statsSource.addEventListener('message', function(e){
|
||||
var stats = JSON.parse(e.data);
|
||||
for (algo in algos) {
|
||||
for (algo in stats.algos) {
|
||||
$('#statsMiners'+algo).text(stats.algos[algo].workers);
|
||||
$('#statsHashrate'+algo).text(stats.algos[algo].hashrateString);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue