forked from premiere/premiere-libtorrent
fixed bug in disk job timer
This commit is contained in:
parent
e6fe05e6f0
commit
68c3faaad1
|
@ -1711,7 +1711,7 @@ namespace libtorrent
|
||||||
|
|
||||||
flush_expired_pieces();
|
flush_expired_pieces();
|
||||||
|
|
||||||
ptime operation_start = time_now_hires();
|
ptime operation_start = now;
|
||||||
|
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
@ -2412,7 +2412,7 @@ namespace libtorrent
|
||||||
|
|
||||||
TORRENT_ASSERT(!j.storage || !j.storage->error());
|
TORRENT_ASSERT(!j.storage || !j.storage->error());
|
||||||
|
|
||||||
m_job_time.add_sample(total_microseconds(operation_start - now));
|
m_job_time.add_sample(total_microseconds(time_now_hires() - operation_start));
|
||||||
|
|
||||||
// if (!j.callback) std::cerr << "DISK THREAD: no callback specified" << std::endl;
|
// if (!j.callback) std::cerr << "DISK THREAD: no callback specified" << std::endl;
|
||||||
// else std::cerr << "DISK THREAD: invoking callback" << std::endl;
|
// else std::cerr << "DISK THREAD: invoking callback" << std::endl;
|
||||||
|
|
Loading…
Reference in New Issue