diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-09 03:04:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-09 03:15:10 +0900 |
| commit | b0f440e631efe18099ced96b604447b5fdce28d8 (patch) | |
| tree | d4a705616a58c314eab568772d5a3c4cc53bd69b /src/AdaptiveURISelector.cc | |
| parent | 99cd73c0926f0c07d27777fde2f15816e8040030 (diff) | |
Rewrite Time with chrono
Diffstat (limited to 'src/AdaptiveURISelector.cc')
| -rw-r--r-- | src/AdaptiveURISelector.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AdaptiveURISelector.cc b/src/AdaptiveURISelector.cc index c00d15ad..9696e0e8 100644 --- a/src/AdaptiveURISelector.cc +++ b/src/AdaptiveURISelector.cc @@ -336,7 +336,7 @@ std::string AdaptiveURISelector::getFirstToTestUri power = (int)pow(2.0, (float)counter); /* We test the mirror another time if it has not been * tested since 2^counter days */ - if(ss->getLastUpdated().difference() > power*24*60*60) { + if(ss->getLastUpdated().difference() > std::chrono::hours(power * 24)) { return u; } } |
