mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-29 05:28:53 +03:00
fix: 0 speed when no speed data returned
This commit is contained in:
parent
53c548b502
commit
a7b8ed9da3
1 changed files with 4 additions and 4 deletions
|
@ -16,12 +16,12 @@ export default class Status {
|
||||||
this.status = connection_status || previous.status
|
this.status = connection_status || previous.status
|
||||||
this.downloaded = dl_info_data || previous.downloaded
|
this.downloaded = dl_info_data || previous.downloaded
|
||||||
this.uploaded = up_info_data || previous.uploaded
|
this.uploaded = up_info_data || previous.uploaded
|
||||||
this.dlspeed = dl_info_speed || previous.dlspeed
|
this.dlspeed = dl_info_speed || 0
|
||||||
this.upspeed = up_info_speed || previous.upspeed
|
this.upspeed = up_info_speed || 0
|
||||||
this.freeDiskSpace = free_space_on_disk || previous.freeDiskSpace
|
this.freeDiskSpace = free_space_on_disk || previous.freeDiskSpace
|
||||||
this.altSpeed = use_alt_speed_limits || previous.altSpeed
|
this.altSpeed = use_alt_speed_limits || previous.altSpeed
|
||||||
this.dlspeedRaw = this.formatSpeed(dl_info_speed) || previous.dlspeedRaw
|
this.dlspeedRaw = this.formatSpeed(dl_info_speed) || 0
|
||||||
this.upspeedRaw = this.formatSpeed(up_info_speed) || previous.upspeedRaw
|
this.upspeedRaw = this.formatSpeed(up_info_speed) || 0
|
||||||
Object.freeze(this)
|
Object.freeze(this)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue