diff options
Diffstat (limited to 'runtime/gc/heap.cc')
-rw-r--r-- | runtime/gc/heap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc index d7b673e..f5f7a86 100644 --- a/runtime/gc/heap.cc +++ b/runtime/gc/heap.cc @@ -2464,7 +2464,7 @@ void Heap::DumpForSigQuit(std::ostream& os) { } size_t Heap::GetPercentFree() { - return static_cast<size_t>(100.0f * static_cast<float>(GetFreeMemory()) / GetMaxMemory()); + return static_cast<size_t>(100.0f * static_cast<float>(GetFreeMemory()) / max_allowed_footprint_); } void Heap::SetIdealFootprint(size_t max_allowed_footprint) { |