diff options
| author | Kyle Suarez <kyle.suarez@mongodb.com> | 2022-09-21 17:48:31 +0000 |
|---|---|---|
| committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-21 20:54:29 +0000 |
| commit | d743e0d165a063e3beba322c3a52903170ca7770 (patch) | |
| tree | 38d0f53249c7583e58c0a78c06b626301a0af273 /src | |
| parent | 02948a5102d2be9f5b727045cf787fc7dda2fcb7 (diff) | |
| download | mongo-d743e0d165a063e3beba322c3a52903170ca7770.tar.gz | |
SERVER-69037 fix incorrect calculation of bytes in MiB
Diffstat (limited to 'src')
| -rw-r--r-- | src/mongo/db/query/sbe_plan_cache.cpp | 4 |
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; |
