Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
knutin committed Apr 24, 2012
1 parent 9afd578 commit 6f15f17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions priv/docroot/dashboard.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
$(document).ready(function() {
var e = new EventSource("stats/stream");
e.addEventListener("open", function (event) {
console.log("open");
});

e.onmessage = function (event) {
var data = $.parseJSON(event.data);
//console.log(data);
$("#requests tbody").html('');

_.each(data['timings'], function (v, k) {
Expand All @@ -19,6 +17,7 @@ $(document).ready(function() {
});

function append_row(k, v) {
if(!v) { return };
var rps = v['observations'];

var mean = format_us(v['mean']) + " ms";
Expand Down

0 comments on commit 6f15f17

Please sign in to comment.