Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Reduce precision for retention time

Chocobozzz8da3e2e9b822
diff --git a/client/src/app/+stats/video/video-stats.component.ts b/client/src/app/+stats/video/video-stats.component.ts
index f85ad0516e..0267cfb352 100644
--- a/client/src/app/+stats/video/video-stats.component.ts
+++ b/client/src/app/+stats/video/video-stats.component.ts
@@ -463,7 +463,7 @@ export class VideoStatsComponent implements OnInit {
for (const d of rawData.data) {
labels.push(secondsToTime(d.second))
- data.push(d.retentionPercent)
+ data.push(Math.round(d.retentionPercent))
}
return {