diff options
Diffstat (limited to 'src/DHTGetPeersCommand.cc')
| -rw-r--r-- | src/DHTGetPeersCommand.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DHTGetPeersCommand.cc b/src/DHTGetPeersCommand.cc index c992ae1b..da52ce8e 100644 --- a/src/DHTGetPeersCommand.cc +++ b/src/DHTGetPeersCommand.cc @@ -55,13 +55,13 @@ namespace aria2 { namespace { -constexpr auto GET_PEER_INTERVAL = std::chrono::minutes(15); +constexpr auto GET_PEER_INTERVAL = 15_min; // Interval when the size of peer list is low. -constexpr auto GET_PEER_INTERVAL_LOW = std::chrono::minutes(5); +constexpr auto GET_PEER_INTERVAL_LOW = 5_min; // Interval when the peer list is empty. -constexpr auto GET_PEER_INTERVAL_ZERO = std::chrono::minutes(1); +constexpr auto GET_PEER_INTERVAL_ZERO = 1_min; // Interval for retry. -constexpr auto GET_PEER_INTERVAL_RETRY = std::chrono::seconds(5); +constexpr auto GET_PEER_INTERVAL_RETRY = 5_s; // Maximum retries. Try more than 5 to drop bad node. const int MAX_RETRIES = 10; |
