fix another boost.chrono time overflow issue

This commit is contained in:
Arvid Norberg 2014-09-02 07:31:41 +00:00
parent 4d57456199
commit b74f5b13ef
1 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ namespace libtorrent
// uint32_t length
char event[32];
char* ptr = event;
detail::write_uint64(total_microseconds((time_now_hires() - min_time())), ptr);
detail::write_uint64(time_now_hires().time_since_epoch().count(), ptr);
memcpy(ptr, &ih[0], 8);
ptr += 8;
detail::write_uint32(uintptr_t(p) & 0xffffffff, ptr);
@ -2290,7 +2290,7 @@ namespace libtorrent
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING
peer_log("*** INVALID_REQUEST [ we don't have metadata yet ]");
peer_log("==> REJECT_PIECE [ piece: %d | s: %x | l: %x ] no metadata"
, r.piece , r.start , r.length);
, r.piece, r.start, r.length);
#endif
write_reject_request(r);
return;
@ -2307,7 +2307,7 @@ namespace libtorrent
peer_log("*** INVALID_REQUEST [ incoming request queue full %d ]"
, int(m_requests.size()));
peer_log("==> REJECT_PIECE [ piece: %d | s: %x | l: %x ] too many requests"
, r.piece , r.start , r.length);
, r.piece, r.start, r.length);
#endif
write_reject_request(r);
return;