summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/sbe_plan_cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/sbe_plan_cache.cpp')
-rw-r--r--src/mongo/db/query/sbe_plan_cache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/sbe_plan_cache.cpp b/src/mongo/db/query/sbe_plan_cache.cpp
index 2db6328720a..fc267726f64 100644
--- a/src/mongo/db/query/sbe_plan_cache.cpp
+++ b/src/mongo/db/query/sbe_plan_cache.cpp
@@ -45,8 +45,8 @@ const auto sbePlanCacheDecoration =
ServiceContext::declareDecoration<std::unique_ptr<sbe::PlanCache>>();
size_t convertToSizeInBytes(const plan_cache_util::PlanCacheSizeParameter& param) {
- constexpr size_t kBytesInMB = 1014 * 1024;
- constexpr size_t kMBytesInGB = 1014;
+ constexpr size_t kBytesInMB = 1024 * 1024;
+ constexpr size_t kMBytesInGB = 1024;
double sizeInMB = param.size;