Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
HAWKULAR-675 : Fix negative values on Web Metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
ammendonca committed Oct 7, 2015
1 parent da1e942 commit a15e878
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,19 @@ module HawkularMetrics {
counterId: 'MI~R~[' + this.$routeParams.resourceId +
'~~]~MT~WildFly Aggregated Web Metrics~Aggregated Servlet Request Time',
start: this.startTimeStamp,
end: this.endTimeStamp
end: this.endTimeStamp,
buckets: 1
}, (resource) => {
this.requestTime = resource[0].value;
this.requestTime = resource[0].max - resource[0].min;
}, this);
this.HawkularMetric.CounterMetricData(this.$rootScope.currentPersona.id).queryMetrics({
counterId: 'MI~R~[' + this.$routeParams.resourceId +
'~~]~MT~WildFly Aggregated Web Metrics~Aggregated Servlet Request Count',
start: this.startTimeStamp,
end: this.endTimeStamp
end: this.endTimeStamp,
buckets: 1
}, (resource) => {
this.requestCount = resource[0].value - resource[resource.length - 1].value;
this.requestCount = resource[0].max - resource[0].min;
}, this);
}

Expand Down

0 comments on commit a15e878

Please sign in to comment.