diff options
Diffstat (limited to 'server/tools/peertube-redundancy.ts')
-rw-r--r-- | server/tools/peertube-redundancy.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tools/peertube-redundancy.ts b/server/tools/peertube-redundancy.ts index fd6c760b2..c24eb5233 100644 --- a/server/tools/peertube-redundancy.ts +++ b/server/tools/peertube-redundancy.ts | |||
@@ -65,19 +65,19 @@ async function listRedundanciesCLI (target: VideoRedundanciesTarget) { | |||
65 | }) as any | 65 | }) as any |
66 | 66 | ||
67 | for (const redundancy of data) { | 67 | for (const redundancy of data) { |
68 | const webtorrentFiles = redundancy.redundancies.files | 68 | const webVideoFiles = redundancy.redundancies.files |
69 | const streamingPlaylists = redundancy.redundancies.streamingPlaylists | 69 | const streamingPlaylists = redundancy.redundancies.streamingPlaylists |
70 | 70 | ||
71 | let totalSize = '' | 71 | let totalSize = '' |
72 | if (target === 'remote-videos') { | 72 | if (target === 'remote-videos') { |
73 | const tmp = webtorrentFiles.concat(streamingPlaylists) | 73 | const tmp = webVideoFiles.concat(streamingPlaylists) |
74 | .reduce((a, b) => a + b.size, 0) | 74 | .reduce((a, b) => a + b.size, 0) |
75 | 75 | ||
76 | totalSize = bytes(tmp) | 76 | totalSize = bytes(tmp) |
77 | } | 77 | } |
78 | 78 | ||
79 | const instances = uniqify( | 79 | const instances = uniqify( |
80 | webtorrentFiles.concat(streamingPlaylists) | 80 | webVideoFiles.concat(streamingPlaylists) |
81 | .map(r => r.fileUrl) | 81 | .map(r => r.fileUrl) |
82 | .map(u => new URL(u).host) | 82 | .map(u => new URL(u).host) |
83 | ) | 83 | ) |
@@ -86,7 +86,7 @@ async function listRedundanciesCLI (target: VideoRedundanciesTarget) { | |||
86 | redundancy.id.toString(), | 86 | redundancy.id.toString(), |
87 | redundancy.name, | 87 | redundancy.name, |
88 | redundancy.url, | 88 | redundancy.url, |
89 | webtorrentFiles.length, | 89 | webVideoFiles.length, |
90 | streamingPlaylists.length, | 90 | streamingPlaylists.length, |
91 | instances.join('\n'), | 91 | instances.join('\n'), |
92 | totalSize | 92 | totalSize |