diff options
| author | volzhs | 2017-11-24 22:54:53 +0900 |
|---|---|---|
| committer | volzhs | 2017-11-25 02:09:32 +0900 |
| commit | 452af98995d0cefe18d555fed7ef29529d174b2e (patch) | |
| tree | f9cb5873e9c5c351c0de830253c9501baf36b45f /editor/script_editor_debugger.cpp | |
| parent | 1406fb6ede644afc621f1f8e4ac2f4a7016f4681 (diff) | |
| download | godot-452af98995d0cefe18d555fed7ef29529d174b2e.tar.gz godot-452af98995d0cefe18d555fed7ef29529d174b2e.tar.zst godot-452af98995d0cefe18d555fed7ef29529d174b2e.zip | |
Diffstat (limited to 'editor/script_editor_debugger.cpp')
| -rw-r--r-- | editor/script_editor_debugger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp index a06732c56..7705e4e1b 100644 --- a/editor/script_editor_debugger.cpp +++ b/editor/script_editor_debugger.cpp @@ -45,6 +45,7 @@ #include "scene/gui/tab_container.h" #include "scene/gui/texture_button.h" #include "scene/gui/tree.h" +#include "ustring.h" class ScriptEditorDebuggerVariables : public Object { @@ -642,7 +643,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da v /= 1024.0; } tt += " bytes"; - vs = rtos(v) + " " + unit; + vs = String::num(v, 2) + " " + unit; } break; case Performance::MONITOR_TYPE_TIME: { tt += " seconds"; |
