Skip to content

Commit

Permalink
PAYARA-4147 MP Metrics now use double for MBean metrics instead of long
Browse files Browse the repository at this point in the history
This issue was causing CPU load to be displayed as 0.
Fixes #4230
  • Loading branch information
Cousjava committed Oct 30, 2019
1 parent 5796b8b commit 9cc9e05
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* @author jonathan coustick
* @since 5.193
*/
public class MBeanGuageImpl implements Gauge<Long> {
public class MBeanGuageImpl implements Gauge<Double> {

private final MBeanExpression mBean;

Expand All @@ -56,7 +56,7 @@ public MBeanGuageImpl(MBeanExpression mBean) {
}

@Override
public Long getValue() {
return mBean.getNumberValue().longValue();
public Double getValue() {
return mBean.getNumberValue().doubleValue();
}
}

0 comments on commit 9cc9e05

Please sign in to comment.