From 86f51e39020401b48a0c8c3195f0153a73ddecef Mon Sep 17 00:00:00 2001 From: Mononaut Date: Mon, 12 Jun 2023 11:54:58 -0400 Subject: [PATCH] fix fee graph for underfilled blocks --- .../fee-distribution-graph.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/fee-distribution-graph/fee-distribution-graph.component.ts b/frontend/src/app/components/fee-distribution-graph/fee-distribution-graph.component.ts index d20a9612f..d41aa444d 100644 --- a/frontend/src/app/components/fee-distribution-graph/fee-distribution-graph.component.ts +++ b/frontend/src/app/components/fee-distribution-graph/fee-distribution-graph.component.ts @@ -68,7 +68,7 @@ export class FeeDistributionGraphComponent implements OnInit, OnChanges { samples.push([(1 - (sampleIndex / this.numSamples)) * 100, 0]); nextSample += sampleInterval; sampleIndex++; - break; + continue; } while (txs[txIndex] && nextSample < cumVSize + txs[txIndex].vsize) { @@ -128,7 +128,7 @@ export class FeeDistributionGraphComponent implements OnInit, OnChanges { position: 'top', color: '#ffffff', textShadowBlur: 0, - formatter: (label: any): string => '' + Math.floor(label.data[1]), + formatter: (label: any): string => '' + (label.data[1] > 99.5 ? Math.round(label.data[1]) : label.data[1].toFixed(1)), }, showAllSymbol: false, smooth: true,