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

Commit

Permalink
Merge pull request #526 from ammendonca/HAWKULAR-675
Browse files Browse the repository at this point in the history
HAWKULAR-675 : Fix negative values on Web Metrics
  • Loading branch information
mtho11 committed Oct 7, 2015
2 parents dad5388 + a15e878 commit ed29e67
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 ed29e67

Please sign in to comment.