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,9 +28,9 @@ $(function(){
|
||||||
var statsSource = new EventSource("/api/live_stats");
|
var statsSource = new EventSource("/api/live_stats");
|
||||||
statsSource.addEventListener('message', function(e){
|
statsSource.addEventListener('message', function(e){
|
||||||
var stats = JSON.parse(e.data);
|
var stats = JSON.parse(e.data);
|
||||||
for (algo in algos) {
|
for (algo in stats.algos) {
|
||||||
$('#statsMiners'+algo).text(stats.algos[algo].workers);
|
$('#statsMiners'+algo).text(stats.algos[algo].workers);
|
||||||
$('#statsHashrate'+algo).text(stats.algos[algo].hashrateString);
|
$('#statsHashrate'+algo).text(stats.algos[algo].hashrateString);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue