mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-06 04:32:40 +00:00
Add ceil operation
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user