Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Slightly improved main.js

  • Loading branch information...
commit a2309f5842108a2fffc452dcc51b7079c1860f9c 1 parent ffd7b0d
@andrewvc authored
Showing with 9 additions and 5 deletions.
  1. +9 −5 resources/public/js/main.js
View
14 resources/public/js/main.js
@@ -91,9 +91,13 @@ Benchmarker = Backbone.Model.extend({
},
stop: function () {
var self = this;
- $.delete("/jobs/current", function () {
- self.set({state: "stopped"});
- });
+ $.ajax("/jobs/current", {
+ method: "delete",
+ success: function () {
+ self.set({state: "stopped"});
+ }
+ });
+
},
bindToStream: function (stream) {
var self = this;
@@ -137,7 +141,7 @@ Benchmarker = Backbone.Model.extend({
return max;
},
percentileAvgs: function () {
- return _.map(this.get('stats')['runtime-percentiles'],
+ return _.map(this.get('stats')['percentiles'],
function (d) { return d.avg}
);
},
@@ -402,7 +406,7 @@ PercentilesView = Backbone.View.extend({
render: function () {
var self = this;
- if (! this.model.get("stats") || ! this.model.get('stats')['runtime-percentiles']) return;
+ if (! this.model.get("stats") || ! this.model.get('stats')['percentiles']) return;
var percentiles = this.model.percentileAvgs();
var deciles = this.model.decileAvgs();

0 comments on commit a2309f5

Please sign in to comment.
Something went wrong with that request. Please try again.