summaryrefslogtreecommitdiff
path: root/src/DownloadCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-06-08 02:03:31 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-06-09 02:05:34 +0900
commit99cd73c0926f0c07d27777fde2f15816e8040030 (patch)
tree7c6a077b0590c49029c76686afb9c2ab1d00bb6d /src/DownloadCommand.h
parent2874f6ab095a30a4d297cdc85fa3730bec41b1c2 (diff)
Replace timer facility with chrono lib
Diffstat (limited to 'src/DownloadCommand.h')
-rw-r--r--src/DownloadCommand.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DownloadCommand.h b/src/DownloadCommand.h
index 485cdc74..2d2663be 100644
--- a/src/DownloadCommand.h
+++ b/src/DownloadCommand.h
@@ -53,7 +53,7 @@ private:
std::unique_ptr<MessageDigest> messageDigest_;
- time_t startupIdleTime_;
+ std::chrono::seconds startupIdleTime_;
int lowestDownloadSpeedLimit_;
@@ -99,9 +99,9 @@ public:
void installStreamFilter(std::unique_ptr<StreamFilter> streamFilter);
- void setStartupIdleTime(time_t startupIdleTime)
+ void setStartupIdleTime(std::chrono::seconds startupIdleTime)
{
- startupIdleTime_ = startupIdleTime;
+ startupIdleTime_ = std::move(startupIdleTime);
}
void setLowestDownloadSpeedLimit(int lowestDownloadSpeedLimit)