diff options
Diffstat (limited to 'server/lib/views/shared/video-viewer-stats.ts')
-rw-r--r-- | server/lib/views/shared/video-viewer-stats.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/lib/views/shared/video-viewer-stats.ts b/server/lib/views/shared/video-viewer-stats.ts index 39e34fb90..ebd963e59 100644 --- a/server/lib/views/shared/video-viewer-stats.ts +++ b/server/lib/views/shared/video-viewer-stats.ts | |||
@@ -106,7 +106,12 @@ export class VideoViewerStats { | |||
106 | const lastSection = stats.watchSections[stats.watchSections.length - 1] | 106 | const lastSection = stats.watchSections[stats.watchSections.length - 1] |
107 | 107 | ||
108 | if (lastSection.start > currentTime) { | 108 | if (lastSection.start > currentTime) { |
109 | logger.warn('Invalid end watch section %d. Last start record was at %d.', currentTime, lastSection.start) | 109 | logger.debug('Invalid end watch section %d. Last start record was at %d. Starting a new section.', currentTime, lastSection.start) |
110 | |||
111 | stats.watchSections.push({ | ||
112 | start: currentTime, | ||
113 | end: currentTime | ||
114 | }) | ||
110 | } else { | 115 | } else { |
111 | lastSection.end = currentTime | 116 | lastSection.end = currentTime |
112 | } | 117 | } |