From 97e9e1b3497f541bb46253e7578c7a9bcc66dce2 Mon Sep 17 00:00:00 2001 From: Vadim <> Date: Fri, 29 Aug 2025 14:11:32 +0300 Subject: [PATCH] fix(detectors): adjust default jitter threshold to 0.2s instead of 200s --- src/detectors/InboundNetworkIssueDetector.ts | 2 +- src/detectors/OutboundNetworkIssueDetector.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detectors/InboundNetworkIssueDetector.ts b/src/detectors/InboundNetworkIssueDetector.ts index bbb4ed2..b4b51eb 100644 --- a/src/detectors/InboundNetworkIssueDetector.ts +++ b/src/detectors/InboundNetworkIssueDetector.ts @@ -25,7 +25,7 @@ class InboundNetworkIssueDetector extends BaseIssueDetector { constructor(params: InboundNetworkIssueDetectorParams = {}) { super(); this.#highPacketLossThresholdPct = params.highPacketLossThresholdPct ?? 5; - this.#highJitterThreshold = params.highJitterThreshold ?? 200; + this.#highJitterThreshold = params.highJitterThreshold ?? 0.2; this.#highJitterBufferDelayThresholdMs = params.highJitterBufferDelayThresholdMs ?? 500; this.#highRttThresholdMs = params.highRttThresholdMs ?? 250; } diff --git a/src/detectors/OutboundNetworkIssueDetector.ts b/src/detectors/OutboundNetworkIssueDetector.ts index 399ca55..b5592cc 100644 --- a/src/detectors/OutboundNetworkIssueDetector.ts +++ b/src/detectors/OutboundNetworkIssueDetector.ts @@ -19,7 +19,7 @@ class OutboundNetworkIssueDetector extends BaseIssueDetector { constructor(params: OutboundNetworkIssueDetectorParams = {}) { super(); this.#highPacketLossThresholdPct = params.highPacketLossThresholdPct ?? 5; - this.#highJitterThreshold = params.highJitterThreshold ?? 200; + this.#highJitterThreshold = params.highJitterThreshold ?? 0.2; } performDetection(data: WebRTCStatsParsed): IssueDetectorResult {