better to have a util function
```
double getFiniteValue(double value, double defaultValue) {
return Double.isFinite(value) ? value : defaultValue;
}
```so you can call `Double.toString(getFiniteValue(realtimeCpuLoadFactor, 0.0))`; and this util function can be reused [ Full content available at: https://github.com/apache/incubator-pulsar/pull/2618 ] This message was relayed via gitbox.apache.org for [email protected]
