diff options
Diffstat (limited to 'src/mongo/util')
-rw-r--r-- | src/mongo/util/tcmalloc_server_status_section.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/util/tcmalloc_server_status_section.cpp b/src/mongo/util/tcmalloc_server_status_section.cpp index 2df8d9022d6..292d60001bf 100644 --- a/src/mongo/util/tcmalloc_server_status_section.cpp +++ b/src/mongo/util/tcmalloc_server_status_section.cpp @@ -119,7 +119,9 @@ public: MallocExtension::instance()->GetNumericProperty("tcmalloc.thread_cache_free_bytes", &thread)) { sub.appendNumber("total_free_bytes", - static_cast<long long>(central + transfer + thread)); + static_cast<long long>(central) + + static_cast<long long>(transfer) + + static_cast<long long>(thread)); } appendNumericPropertyIfAvailable( sub, "central_cache_free_bytes", "tcmalloc.central_cache_free_bytes"); |