From 139c58e16092f693bc3af21b58e3fc6f70d2c824 Mon Sep 17 00:00:00 2001 From: Ludek Novy <13610612+ludeknovy@users.noreply.github.com> Date: Fri, 27 Jan 2023 09:42:25 +0100 Subject: [PATCH] Fix: request stats table - sort by network (#304) --- .../request-stats/request-stats-compare.component.html | 2 +- .../request-stats/request-stats-compare.component.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/item-detail/request-stats/request-stats-compare.component.html b/src/app/item-detail/request-stats/request-stats-compare.component.html index a8a91a2f..fd14e777 100644 --- a/src/app/item-detail/request-stats/request-stats-compare.component.html +++ b/src/app/item-detail/request-stats/request-stats-compare.component.html @@ -82,7 +82,7 @@
Request Statistics reqs/s {{defaultUnit ? "" : "[%]" }} - network [{{ defaultUnit ? "mbps" : "%" }}] + network [{{ defaultUnit ? "mbps" : "%" }}] error rate [%] diff --git a/src/app/item-detail/request-stats/request-stats-compare.component.ts b/src/app/item-detail/request-stats/request-stats-compare.component.ts index e06819e6..454bf6c3 100644 --- a/src/app/item-detail/request-stats/request-stats-compare.component.ts +++ b/src/app/item-detail/request-stats/request-stats-compare.component.ts @@ -321,6 +321,10 @@ export class RequestStatsCompareComponent implements OnInit, OnDestroy { return roundNumberTwoDecimals(((item.apdex.satisfaction + ( item.apdex.toleration * 0.5)) / item.samples)) } + public sortByNetwork(item) { + return roundNumberTwoDecimals(item.bytesPerSecond + item.bytesSentPerSecond) + } + private apdexScore(apdexValue: number): string { const score = [ { rangeFrom: 0.94, rangeTo: 1, name: "Excellent" },