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/FileAllocationCommand.cc | |
| 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/FileAllocationCommand.cc')
| -rw-r--r-- | src/FileAllocationCommand.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FileAllocationCommand.cc b/src/FileAllocationCommand.cc index aa1029b8..f3ca426a 100644 --- a/src/FileAllocationCommand.cc +++ b/src/FileAllocationCommand.cc @@ -45,6 +45,7 @@ #include "DownloadContext.h" #include "a2functional.h" #include "RecoverableException.h" +#include "wallclock.h" namespace aria2 { @@ -65,7 +66,7 @@ bool FileAllocationCommand::executeInternal() if(_fileAllocationEntry->finished()) { if(logger->debug()) { logger->debug(MSG_ALLOCATION_COMPLETED, - _timer.difference(), + _timer.difference(global::wallclock), util::itos(_requestGroup->getTotalLength(), true).c_str()); } _e->_fileAllocationMan->dropPickedEntry(); |
