Skip to content

Commit 2d6a6e8

Browse files
Draczechbrian-brazil
authored andcommitted
Formatter fixed and unified for Quantile and Item classes (#442)
Signed-off-by: Milan Nikl <[email protected]>
1 parent d720fea commit 2d6a6e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simpleclient/src/main/java/io/prometheus/client/CKMSQuantiles.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public Item(double value, int lower_delta, int delta) {
267267

268268
@Override
269269
public String toString() {
270-
return String.format("%d, %d, %d", value, g, delta);
270+
return String.format("I{val=%.3f, g=%d, del=%d}", value, g, delta);
271271
}
272272
}
273273

@@ -286,7 +286,7 @@ public Quantile(double quantile, double error) {
286286

287287
@Override
288288
public String toString() {
289-
return String.format("Q{q=%.3f, eps=%.3f})", quantile, error);
289+
return String.format("Q{q=%.3f, eps=%.3f}", quantile, error);
290290
}
291291
}
292292

0 commit comments

Comments
 (0)