1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

Declare TR_ETA_NOT_AVAIL as time_t (#4065)

This commit is contained in:
A Cœur 2022-11-04 00:42:42 +08:00 committed by GitHub
parent 84badfc66f
commit 8857e8c1a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1134,7 +1134,7 @@ tr_stat const* tr_torrentStat(tr_torrent* tor)
auto seed_idle_minutes = uint16_t{};
s->etaIdle = tor->etaSpeed_Bps < 1 && tr_torrentGetSeedIdle(tor, &seed_idle_minutes) ?
seed_idle_minutes * 60 - s->idleSecs :
static_cast<time_t>(TR_ETA_NOT_AVAIL);
TR_ETA_NOT_AVAIL;
}
break;

View file

@ -1489,7 +1489,7 @@ enum
TR_PEER_FROM_LTEP, /* peer address provided in an LTEP handshake */
TR_PEER_FROM__MAX
};
enum
enum tr_eta : time_t
{
TR_ETA_NOT_AVAIL = -1,
TR_ETA_UNKNOWN = -2,