mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-27 11:10:31 -06:00
minor fixes on PR
This commit is contained in:
parent
28f561aedd
commit
69617042b1
@ -149,14 +149,14 @@ public class ScenarioResult {
|
|||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
||||||
ActivityMetrics.getMetricRegistry().getMetrics().forEach((k, v) -> {
|
ActivityMetrics.getMetricRegistry().getMetrics().forEach((k, v) -> {
|
||||||
if (v instanceof Counting) {
|
if (v instanceof Counting counting) {
|
||||||
long count = ((Counting) v).getCount();
|
long count = counting.getCount();
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
NBMetricsSummary.summarize(sb, k, v);
|
NBMetricsSummary.summarize(sb, k, v);
|
||||||
}
|
}
|
||||||
} else if (v instanceof Gauge) {
|
} else if (v instanceof Gauge<?> gauge) {
|
||||||
Object value = ((Gauge) v).getValue();
|
Object value = gauge.getValue();
|
||||||
if (value != null && value instanceof Number n) {
|
if (value instanceof Number n) {
|
||||||
if (n.doubleValue() != 0) {
|
if (n.doubleValue() != 0) {
|
||||||
NBMetricsSummary.summarize(sb, k, v);
|
NBMetricsSummary.summarize(sb, k, v);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user