Add ceil operation

This commit is contained in:
슈리튬
2021-09-07 11:51:16 +09:00
committed by GitHub
parent 3125a8b772
commit fb04bbed4d

View File

@@ -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', () => {