From 51da158e40e23b761a33c16cf42f87ce937a8a8f Mon Sep 17 00:00:00 2001 From: Stefan Krause Date: Mon, 16 Oct 2023 22:35:32 +0200 Subject: [PATCH] results for chrome 118 --- webdriver-ts-results/src/Common.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/webdriver-ts-results/src/Common.ts b/webdriver-ts-results/src/Common.ts index b63544c2a..9342084a0 100644 --- a/webdriver-ts-results/src/Common.ts +++ b/webdriver-ts-results/src/Common.ts @@ -616,16 +616,15 @@ export class ResultTableData { let statisticalResult = undefined; let statisticalCol = undefined; const compareWithMean = compareWithResultsValues.mean; - const stdDev = compareWithResultsValues.standardDeviation || 0; - const compareWithResultsStdDev = - compareWithResultsValues.standardDeviation || 0; + const stdDev = resultValues.standardDeviation || 0; + const compareWithResultsStdDev = compareWithResultsValues.standardDeviation || 0; const x1 = resultValues.mean; const x2 = compareWithMean; const s1_2 = stdDev * stdDev; const s2_2 = compareWithResultsStdDev * compareWithResultsStdDev; - const n1 = 10; - const n2 = 10; + const n1 = compareWithResultsValues.values.length; + const n2 = resultValues.values.length; const ny = Math.pow(s1_2 / n1 + s2_2 / n2, 2) / ((s1_2 * s1_2) / (n1 * n1 * (n1 - 1)) +