fix some javascript code style issues

This commit is contained in:
Jakob Ketterl
2019-11-07 10:56:39 +01:00
parent 8a46922e77
commit dc5ac081ce
2 changed files with 7 additions and 9 deletions

View File

@ -1,6 +1,6 @@
function Measurement() {
this.reset();
};
}
Measurement.prototype.add = function(v) {
this.value += v;
@ -25,7 +25,7 @@ Measurement.prototype.reset = function() {
Measurement.prototype.report = function(range, interval, callback) {
return new Reporter(this, range, interval, callback);
}
};
function Reporter(measurement, range, interval, callback) {
this.measurement = measurement;
@ -33,7 +33,7 @@ function Reporter(measurement, range, interval, callback) {
this.samples = [];
this.callback = callback;
this.interval = setInterval(this.report.bind(this), interval);
};
}
Reporter.prototype.sample = function(){
this.samples.push({