Merge pull request #48 from GMFlash/patch-1

Fix ReferenceError: Can't find variable: algos
This commit is contained in:
Matthew Little 2014-04-08 09:31:09 -06:00
commit 33aa07a23e
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);
}
});