diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-21 15:17:00 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-21 15:30:02 +0900 |
| commit | 0b48bb1dbd048c7e5232f457a52838155c085d60 (patch) | |
| tree | 44a9cdb109623923501ac190b0ac5f47839f2fe0 /src/UTPexExtensionMessage.h | |
| parent | dd277b33af2a5a58c39142097c3ede5df7f5655d (diff) | |
Use user-defined literals for time units
Diffstat (limited to 'src/UTPexExtensionMessage.h')
| -rw-r--r-- | src/UTPexExtensionMessage.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/UTPexExtensionMessage.h b/src/UTPexExtensionMessage.h index 90eff9be..2bdae529 100644 --- a/src/UTPexExtensionMessage.h +++ b/src/UTPexExtensionMessage.h @@ -42,6 +42,7 @@ #include <memory> #include "a2time.h" +#include "a2functional.h" namespace aria2 { @@ -120,7 +121,7 @@ public: return maxDroppedPeer_; } - constexpr static auto DEFAULT_INTERVAL = std::chrono::minutes(1); + constexpr static auto DEFAULT_INTERVAL = 1_min; }; } // namespace aria2 |
