From ebb6b6159eaf70092902f013d72a071cbd8decba Mon Sep 17 00:00:00 2001 From: Ludek <13610612+ludeknovy@users.noreply.github.com> Date: Mon, 8 Mar 2021 19:34:10 +0100 Subject: [PATCH] throughput rounding (#104) --- src/app/item-detail/item-detail.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/item-detail/item-detail.component.ts b/src/app/item-detail/item-detail.component.ts index 4e002749..bde843b4 100644 --- a/src/app/item-detail/item-detail.component.ts +++ b/src/app/item-detail/item-detail.component.ts @@ -268,7 +268,7 @@ export class ItemDetailComponent implements OnInit { const rampUpIndex = threads.map(_ => _[1]).indexOf(maxVu); const minThroughput = Math.min(...overallThroughput.data.slice(rampUpIndex, -2).map(_ => _[1])); - const throughputVariability = 100 - this.roundNumberTwoDecimals((minThroughput / throughput) * 100); + const throughputVariability = this.roundNumberTwoDecimals(100 - (minThroughput / throughput) * 100); this.perfAnalysis = { variability: {