fixed rate request in static/index.html
authorForrest Voight <forrest@forre.st>
Thu, 22 Mar 2012 16:37:57 +0000 (12:37 -0400)
committerForrest Voight <forrest@forre.st>
Thu, 22 Mar 2012 16:38:07 +0000 (12:38 -0400)
web-static/index.html

index b6684e1..e642e63 100644 (file)
@@ -8,8 +8,8 @@
                    alert("error: " + settings.url + ": " + err.message);
             });
 
-            $.get('/rate', function(data) {
-                   $('#hashrate').html(data / 1000000000);
+            $.getJSON('/rate', function(rate) {
+                   $('#hashrate').html(rate / 1000000000);
             });
             
             $.getJSON('/current_payouts', function(pays) {