Make rtorrent compatible with the latest HEAD.

This commit is contained in:
Jari Sundell
2011-10-17 13:09:26 +09:00
parent d7fddfe718
commit e9a065f9d8
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -50,6 +50,7 @@ class timer {
timer(timeval tv) : m_time((int64_t)(uint32_t)tv.tv_sec * 1000000 + (int64_t)(uint32_t)tv.tv_usec % 1000000) {}
int32_t seconds() const { return m_time / 1000000; }
int32_t seconds_ceiling() const { return (m_time + 1000000 - 1) / 1000000; }
int64_t usec() const { return m_time; }
timer round_seconds() const { return (m_time / 1000000) * 1000000; }