mirror of
https://github.com/rumanzo/bt2qbt.git
synced 2024-11-09 12:22:38 +01:00
total downloaded 0 for not completed torrents
This commit is contained in:
parent
0009754f1e
commit
71c3b1aa66
@ -220,7 +220,11 @@ func logic(key string, value map[string]interface{}, flags *Flags, chans *Channe
|
||||
newstructure.QbtQueuePosition = position
|
||||
newstructure.Started(value["started"].(int64))
|
||||
newstructure.FinishedTime = int64(time.Since(time.Unix(value["completed_on"].(int64), 0)).Minutes())
|
||||
newstructure.TotalDownloaded = value["downloaded"].(int64)
|
||||
if value["completed_on"].(int64) == 0 {
|
||||
newstructure.TotalDownloaded = 0
|
||||
} else {
|
||||
newstructure.TotalDownloaded = value["downloaded"].(int64)
|
||||
}
|
||||
newstructure.TotalUploaded = value["uploaded"].(int64)
|
||||
newstructure.UploadRateLimit = value["upspeed"].(int64)
|
||||
newstructure.IfTags(value["labels"])
|
||||
|
Loading…
Reference in New Issue
Block a user