summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2017-11-24 22:54:53 +0900
committervolzhs <volzhs@gmail.com>2017-11-25 02:09:32 +0900
commit452af98995d0cefe18d555fed7ef29529d174b2e (patch)
treef9cb5873e9c5c351c0de830253c9501baf36b45f /editor
parent1406fb6ede644afc621f1f8e4ac2f4a7016f4681 (diff)
Better number format for memory usage
Diffstat (limited to 'editor')
-rw-r--r--editor/script_editor_debugger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp
index a06732c563..7705e4e1b9 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";