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/BtAnnounce.h | |
| parent | dd277b33af2a5a58c39142097c3ede5df7f5655d (diff) | |
Use user-defined literals for time units
Diffstat (limited to 'src/BtAnnounce.h')
| -rw-r--r-- | src/BtAnnounce.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/BtAnnounce.h b/src/BtAnnounce.h index 2ee2131f..21688bb7 100644 --- a/src/BtAnnounce.h +++ b/src/BtAnnounce.h @@ -41,6 +41,7 @@ #include <memory> #include "a2time.h" +#include "a2functional.h" namespace aria2 { @@ -138,7 +139,7 @@ public: static const std::string PEERS6; - constexpr static auto DEFAULT_ANNOUNCE_INTERVAL = std::chrono::seconds(120); + constexpr static auto DEFAULT_ANNOUNCE_INTERVAL = 2_min; }; } // namespace aria2 |
