From fb04bbed4d6b1c4b169628626af62b4abb12f498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=8A=88=EB=A6=AC=ED=8A=AC?= <9804cjh@naver.com> Date: Tue, 7 Sep 2021 11:51:16 +0900 Subject: [PATCH] Add ceil operation --- play-dl/YouTube/classes/LiveStream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play-dl/YouTube/classes/LiveStream.ts b/play-dl/YouTube/classes/LiveStream.ts index f4f6599..0e1e391 100644 --- a/play-dl/YouTube/classes/LiveStream.ts +++ b/play-dl/YouTube/classes/LiveStream.ts @@ -122,7 +122,7 @@ export class Stream { this.type = type this.stream = new PassThrough({ highWaterMark : 10 * 1000 * 1000 }) this.bytes_count = 0 - this.per_sec_bytes = contentLength / duration + this.per_sec_bytes = Math.ceil(contentLength / duration) this.timer = null this.request = null this.stream.on('close', () => {