Skip to content

Commit

Permalink
Fix float value used for MONITOR_TYPE_QUANTITY
Browse files Browse the repository at this point in the history
  • Loading branch information
yahkr committed Nov 11, 2024
1 parent 0f5f3bc commit 9625fdc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/debugger/editor_performance_profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9625fdc

Please sign in to comment.