diff options
Diffstat (limited to 'server/lib/schedulers')
-rw-r--r-- | server/lib/schedulers/videos-redundancy-scheduler.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/lib/schedulers/videos-redundancy-scheduler.ts b/server/lib/schedulers/videos-redundancy-scheduler.ts index 21fe51156..d326148d0 100644 --- a/server/lib/schedulers/videos-redundancy-scheduler.ts +++ b/server/lib/schedulers/videos-redundancy-scheduler.ts | |||
@@ -293,9 +293,8 @@ export class VideosRedundancyScheduler extends AbstractScheduler { | |||
293 | const fileReducer = (previous: number, current: MVideoFile) => previous + current.size | 293 | const fileReducer = (previous: number, current: MVideoFile) => previous + current.size |
294 | 294 | ||
295 | const totalSize = files.reduce(fileReducer, 0) | 295 | const totalSize = files.reduce(fileReducer, 0) |
296 | if (playlists.length === 0) return totalSize | ||
297 | 296 | ||
298 | return totalSize * playlists.length | 297 | return totalSize + (totalSize * playlists.length) |
299 | } | 298 | } |
300 | 299 | ||
301 | private async loadAndRefreshVideo (videoUrl: string) { | 300 | private async loadAndRefreshVideo (videoUrl: string) { |