Fix ReferenceError: Can't find variable: algos

This commit is contained in:
GMFlash 2014-04-07 12:57:42 -04:00
parent 6d2672105a
commit b98dd31d05
1 changed files with 3 additions and 3 deletions

View File

@ -28,9 +28,9 @@ $(function(){
var statsSource = new EventSource("/api/live_stats");
statsSource.addEventListener('message', function(e){
var stats = JSON.parse(e.data);
for (algo in algos) {
$('#statsMiners'+algo).text(stats.algos[algo].workers);
$('#statsHashrate'+algo).text(stats.algos[algo].hashrateString);
for (algo in stats.algos) {
$('#statsMiners'+algo).text(stats.algos[algo].workers);
$('#statsHashrate'+algo).text(stats.algos[algo].hashrateString);
}
});