Permalink
Browse files

cast throughput to int in ajax updater

  • Loading branch information...
1 parent 5535ecd commit 1fefae9bc7153f94b0f46812674e1b3b80d4c786 @lennartkoopmann lennartkoopmann committed May 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/javascripts/application.js
@@ -279,7 +279,7 @@ $(document).ready(function(){
$.post("/health/currentthroughput", function(data) {
json = eval('(' + data + ')');
count = $(".health-throughput-current");
- count.html(parseInt(json.count)/5); // /5, because this is the 5 second sum and we want only the 1 second average
+ count.html(parseInt(parseInt(json.count)/5)); // /5, because this is the 5 second sum and we want only the 1 second average
count.fadeOut(200, function() {
count.fadeIn(200);
});

0 comments on commit 1fefae9

Please sign in to comment.