1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Better number format for memory usage

This commit is contained in:
volzhs
2017-11-24 22:54:53 +09:00
parent 1406fb6ede
commit 452af98995

View File

@@ -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";