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