mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix player metrics
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user