summaryrefslogtreecommitdiff
path: root/src/TimeBasedCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/TimeBasedCommand.cc')
-rw-r--r--src/TimeBasedCommand.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/TimeBasedCommand.cc b/src/TimeBasedCommand.cc
index 0be235bb..73753012 100644
--- a/src/TimeBasedCommand.cc
+++ b/src/TimeBasedCommand.cc
@@ -39,14 +39,14 @@
namespace aria2 {
TimeBasedCommand::TimeBasedCommand(cuid_t cuid, DownloadEngine* e,
- time_t interval,
+ std::chrono::seconds interval,
bool routineCommand)
: Command(cuid),
- e_(e),
- checkPoint_(global::wallclock()),
- interval_(interval),
- exit_(false),
- routineCommand_(routineCommand)
+ e_(e),
+ checkPoint_(global::wallclock()),
+ interval_(std::move(interval)),
+ exit_(false),
+ routineCommand_(routineCommand)
{}
TimeBasedCommand::~TimeBasedCommand() {}