diff options
Diffstat (limited to 'src/AbstractCommand.h')
| -rw-r--r-- | src/AbstractCommand.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/AbstractCommand.h b/src/AbstractCommand.h index 5cca26a5..6cf5a5de 100644 --- a/src/AbstractCommand.h +++ b/src/AbstractCommand.h @@ -83,7 +83,7 @@ private: Timer checkPoint_; Timer serverStatTimer_; - time_t timeout_; + std::chrono::seconds timeout_; bool checkSocketIsReadable_; bool checkSocketIsWritable_; @@ -185,14 +185,14 @@ public: // check. void swapSocket(std::shared_ptr<SocketCore>& socket); - time_t getTimeout() const + std::chrono::seconds getTimeout() const { return timeout_; } - void setTimeout(time_t timeout) + void setTimeout(std::chrono::seconds timeout) { - timeout_ = timeout; + timeout_ = std::move(timeout); } void prepareForNextAction(std::unique_ptr<CheckIntegrityEntry> checkEntry); |
