forked from premiere/premiere-libtorrent
restore session_time
This commit is contained in:
parent
a9f07a29bd
commit
3121334346
|
@ -987,7 +987,7 @@ namespace libtorrent
|
|||
// +1 is here to make it possible to distinguish uninitialized (to
|
||||
// 0) timestamps and timestamps of things that happend during the
|
||||
// first second after the session was constructed
|
||||
boost::int64_t const ret = total_seconds(clock_type::now() - m_created) + 1;
|
||||
boost::int64_t const ret = total_seconds(aux::time_now() - m_created) + 1;
|
||||
TORRENT_ASSERT(ret >= 0);
|
||||
TORRENT_ASSERT(ret <= (std::numeric_limits<boost::uint16_t>::max)());
|
||||
return static_cast<boost::uint16_t>(ret);
|
||||
|
|
Loading…
Reference in New Issue