mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Improve viewer counter
More precise, avoid weird decrease, reuse an id to federate viewers
This commit is contained in:
parent
dfbcefc20d
commit
ac907dc7c1
17 changed files with 235 additions and 156 deletions
|
@ -43,7 +43,7 @@ async function runCommand (req: express.Request, res: express.Response) {
|
|||
const processors: { [id in SendDebugCommand['command']]: () => Promise<any> } = {
|
||||
'remove-dandling-resumable-uploads': () => RemoveDanglingResumableUploadsScheduler.Instance.execute(),
|
||||
'process-video-views-buffer': () => VideoViewsBufferScheduler.Instance.execute(),
|
||||
'process-video-viewers': () => VideoViewsManager.Instance.processViewers()
|
||||
'process-video-viewers': () => VideoViewsManager.Instance.processViewerStats()
|
||||
}
|
||||
|
||||
await processors[body.command]()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue