Skip to content

Commit 9625fdc

Browse files
committed
Fix float value used for MONITOR_TYPE_QUANTITY
1 parent 0f5f3bc commit 9625fdc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

editor/debugger/editor_performance_profiler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ void EditorPerformanceProfiler::Monitor::reset() {
8181

8282
String EditorPerformanceProfiler::_create_label(float p_value, Performance::MonitorType p_type) {
8383
switch (p_type) {
84+
case Performance::MONITOR_TYPE_QUANTITY: {
85+
return TS->format_number(itos(p_value));
86+
}
8487
case Performance::MONITOR_TYPE_MEMORY: {
8588
return String::humanize_size(p_value);
8689
}

0 commit comments

Comments
 (0)