From 1c99f8b2176dbc75b44701866e675430c025d1ca Mon Sep 17 00:00:00 2001 From: Ludek <13610612+ludeknovy@users.noreply.github.com> Date: Mon, 15 Mar 2021 09:36:13 +0100 Subject: [PATCH] mbps fix (#116) --- 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 0a74ad29..8c0a0903 100644 --- a/src/app/item-detail/item-detail.component.ts +++ b/src/app/item-detail/item-detail.component.ts @@ -251,7 +251,7 @@ export class ItemDetailComponent implements OnInit { } bytesToMbps(bytes) { - return this.roundNumberTwoDecimals(bytes / Math.pow(1024, 2)); + return this.roundNumberTwoDecimals(bytes * 8.0E-6); } toggleThroughputBand({ element, perfAnalysis }) {