diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-04-11 08:28:22 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-04-11 08:28:22 +0000 |
| commit | 0529e781875068e21085f4ac748eb5ee5d6085b3 (patch) | |
| tree | 4e62dabcf78b1a8f84fc466f903b696bbc900f18 /src/DownloadEngine.h | |
| parent | bf0cf1f5d955ead2a76b79bfe3f796bddee185d0 (diff) | |
2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and
usable to prevent from aria2 from being affected by system time
change.
Diffstat (limited to 'src/DownloadEngine.h')
| -rw-r--r-- | src/DownloadEngine.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DownloadEngine.h b/src/DownloadEngine.h index fff1c5fd..b29adca5 100644 --- a/src/DownloadEngine.h +++ b/src/DownloadEngine.h @@ -44,7 +44,7 @@ #include "SharedHandle.h" #include "a2netcompat.h" -#include "TimeA2.h" +#include "TimerA2.h" #include "a2io.h" #ifdef ENABLE_ASYNC_DNS # include "AsyncNameResolver.h" @@ -92,7 +92,7 @@ private: time_t _timeout; - Time _registeredTime; + Timer _registeredTime; public: SocketPoolEntry(const SharedHandle<SocketCore>& socket, const std::map<std::string, std::string>& option, @@ -116,7 +116,7 @@ private: // key = IP address:port, value = SocketPoolEntry std::multimap<std::string, SocketPoolEntry> _socketPool; - Time _lastSocketPoolScan; + Timer _lastSocketPoolScan; bool _noWait; |
