summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahooinc.com>2023-11-07 10:21:39 +0100
committerTor Egge <Tor.Egge@yahooinc.com>2023-11-07 10:21:39 +0100
commit5f9f14fc0f6b88c35749c5b15093eabeb0fb66b0 (patch)
tree31de9316f3a56b25699cf4261480a70291c18d49 /storage
parent2fc631ac7e05e728b0bca098a4bbc2cec78c2522 (diff)
Use int64_t constants.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/storageserver/mergethrottler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/src/vespa/storage/storageserver/mergethrottler.cpp b/storage/src/vespa/storage/storageserver/mergethrottler.cpp
index b341c676fc9..54a4ddbc780 100644
--- a/storage/src/vespa/storage/storageserver/mergethrottler.cpp
+++ b/storage/src/vespa/storage/storageserver/mergethrottler.cpp
@@ -1355,8 +1355,8 @@ MergeThrottler::set_hw_info_locking(const vespalib::HwInfo& hw_info) {
size_t
MergeThrottler::deduced_memory_limit(const StorServerConfig& cfg) const noexcept {
- const auto min_limit = static_cast<size_t>(std::max(cfg.mergeThrottlingMemoryLimit.autoLowerBoundBytes, 1L));
- const auto max_limit = std::max(static_cast<size_t>(std::max(cfg.mergeThrottlingMemoryLimit.autoUpperBoundBytes, 1L)), min_limit);
+ const auto min_limit = static_cast<size_t>(std::max(cfg.mergeThrottlingMemoryLimit.autoLowerBoundBytes, INT64_C(1)));
+ const auto max_limit = std::max(static_cast<size_t>(std::max(cfg.mergeThrottlingMemoryLimit.autoUpperBoundBytes, INT64_C(1))), min_limit);
const auto mem_scale_factor = std::max(cfg.mergeThrottlingMemoryLimit.autoPhysMemScaleFactor, 0.0);
const auto node_mem = static_cast<double>(_hw_info.memory().sizeBytes());