server: Transmission: normalize "unknown" ETA (-2) to infinity (-1) (#432)

Bug: #431
This commit is contained in:
Trim21
2021-10-24 11:54:49 +08:00
committed by GitHub
parent 9c9675df34
commit 1a3f3ffaec
@@ -374,7 +374,7 @@ class TransmissionClientGatewayService extends ClientGatewayService {
downTotal: torrent.downloadedEver,
upRate: torrent.rateUpload,
upTotal: torrent.uploadedEver,
eta: torrent.eta,
eta: torrent.eta > 0 ? torrent.eta : -1,
isPrivate: torrent.isPrivate,
isInitialSeeding: false,
isSequential: false,