From 9625fdc1d747c03c8e642f73c9fff02aa7e9bb09 Mon Sep 17 00:00:00 2001 From: yahkr <62478788+yahkr@users.noreply.github.com> Date: Mon, 11 Nov 2024 08:33:47 -0500 Subject: [PATCH] Fix float value used for MONITOR_TYPE_QUANTITY --- editor/debugger/editor_performance_profiler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/debugger/editor_performance_profiler.cpp b/editor/debugger/editor_performance_profiler.cpp index 1ea9a6653478..31c09c9b3779 100644 --- a/editor/debugger/editor_performance_profiler.cpp +++ b/editor/debugger/editor_performance_profiler.cpp @@ -81,6 +81,9 @@ void EditorPerformanceProfiler::Monitor::reset() { String EditorPerformanceProfiler::_create_label(float p_value, Performance::MonitorType p_type) { switch (p_type) { + case Performance::MONITOR_TYPE_QUANTITY: { + return TS->format_number(itos(p_value)); + } case Performance::MONITOR_TYPE_MEMORY: { return String::humanize_size(p_value); }