diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-21 18:04:30 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-21 19:29:54 +0900 |
| commit | 318c804504e32b7a0bbdbb35336d2e918000d80a (patch) | |
| tree | fad396aee04c44a29ee79b33e1675db2275146c0 /src/FileEntry.cc | |
| parent | 8ba9b0474747185708a25943fb6d2f97b3d9b17f (diff) | |
Use user-defined literal for k, m, and g (powers of 1024)
Diffstat (limited to 'src/FileEntry.cc')
| -rw-r--r-- | src/FileEntry.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FileEntry.cc b/src/FileEntry.cc index 35b660e8..08c42c25 100644 --- a/src/FileEntry.cc +++ b/src/FileEntry.cc @@ -251,7 +251,7 @@ FileEntry::findFasterRequest const std::vector<std::pair<size_t, std::string> >& usedHosts, const std::shared_ptr<ServerStatMan>& serverStatMan) { - const int SPEED_THRESHOLD = 20*1024; + constexpr int SPEED_THRESHOLD = 20_k; if(lastFasterReplace_.difference(global::wallclock()) < startupIdleTime) { return nullptr; } |
