Skip to content

Commit

Permalink
Merge pull request #4292 from Cousjava/PAYARA-4147-metrics-cpuload-0
Browse files Browse the repository at this point in the history
PAYARA-4147 MP Metrics now use double for MBean metrics instead of long
  • Loading branch information
Cousjava authored Nov 4, 2019
2 parents 5925cca + 9cc9e05 commit c98a1f9
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 c98a1f9

Please sign in to comment.