From bfd01f289dd9b7896fc94a1ee8ce2e0fbac1cf99 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 19 Jul 2023 10:20:01 +0200 Subject: Fix player metrics --- client/src/assets/player/shared/metrics/metrics-plugin.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/src/assets') diff --git a/client/src/assets/player/shared/metrics/metrics-plugin.ts b/client/src/assets/player/shared/metrics/metrics-plugin.ts index c8b61592c..6ca368f87 100644 --- a/client/src/assets/player/shared/metrics/metrics-plugin.ts +++ b/client/src/assets/player/shared/metrics/metrics-plugin.ts @@ -144,6 +144,8 @@ class MetricsPlugin extends Plugin { this.player.on('http-info', (_event, data: PlayerNetworkInfo) => { this.downloadedBytesHTTP += Math.round(data.http.downloaded - (this.lastPlayerNetworkInfo?.http.downloaded || 0)) + + this.lastPlayerNetworkInfo = data }) } -- cgit v1.2.3