mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-23 10:32:29 +03:00
demo progress report fix
This commit is contained in:
parent
61ea2c77c8
commit
87007d5ae3
@ -64,7 +64,7 @@ export class Session extends BaseSession {
|
||||
}, 2000)
|
||||
})
|
||||
this.vm.add_listener('download-progress', (e) => {
|
||||
this.emitMessage(`\rDownloading ${path.basename(e.file_name)}: ${e.loaded / 1024}/${e.total / 1024} kB `)
|
||||
this.emitMessage(`\rDownloading ${path.basename(e.file_name)}: ${Math.floor(e.loaded / 1024)}/${Math.floor(e.total / 1024)} kB `)
|
||||
})
|
||||
this.vm.add_listener('download-error', (e) => {
|
||||
this.emitMessage(`\r\nDownload error: ${e}\r\n`)
|
||||
|
Loading…
Reference in New Issue
Block a user