Skip to content

Commit

Permalink
Closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopacini committed Jul 8, 2020
1 parent a291608 commit 525ed86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions histogram.ts
Expand Up @@ -52,8 +52,7 @@ export class Histogram extends Metric implements Observe {
expose(): string {
let text = "";
for (let i = 0; i < this.buckets.length; i++) {
let labels = this.getLabelsAsString();
labels = labels.slice(0, -1) + `,le="${this.buckets[i]}"}`;
let labels = this.getLabelsAsString({ le: `${this.buckets[i]}` });
labels = labels.replace("Infinity", "+Inf");
text += `${this.collector.name}_bucket${labels} ${this.values[i]}\n`;
}
Expand Down

0 comments on commit 525ed86

Please sign in to comment.