diff options
-rw-r--r-- | client/src/assets/player/shared/metrics/metrics-plugin.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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 { | |||
144 | 144 | ||
145 | this.player.on('http-info', (_event, data: PlayerNetworkInfo) => { | 145 | this.player.on('http-info', (_event, data: PlayerNetworkInfo) => { |
146 | this.downloadedBytesHTTP += Math.round(data.http.downloaded - (this.lastPlayerNetworkInfo?.http.downloaded || 0)) | 146 | this.downloadedBytesHTTP += Math.round(data.http.downloaded - (this.lastPlayerNetworkInfo?.http.downloaded || 0)) |
147 | |||
148 | this.lastPlayerNetworkInfo = data | ||
147 | }) | 149 | }) |
148 | } | 150 | } |
149 | 151 | ||