From 0529e781875068e21085f4ac748eb5ee5d6085b3 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 11 Apr 2010 08:28:22 +0000 Subject: 2010-04-11 Tatsuhiro Tsujikawa Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and usable to prevent from aria2 from being affected by system time change. --- src/TimeBasedCommand.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/TimeBasedCommand.h') diff --git a/src/TimeBasedCommand.h b/src/TimeBasedCommand.h index f08a9af1..dc5f0c38 100644 --- a/src/TimeBasedCommand.h +++ b/src/TimeBasedCommand.h @@ -36,7 +36,7 @@ #define _D_TIME_BASED_COMMAND_H_ #include "Command.h" -#include "TimeA2.h" +#include "TimerA2.h" namespace aria2 { @@ -60,7 +60,7 @@ protected: bool _routineCommand; private: - Time _checkPoint; + Timer _checkPoint; public: /** * preProcess() is called each time when excute() is called. -- cgit