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:
parent
84badfc66f
commit
8857e8c1a4
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue