Merge pull request #13246 from volzhs/memory-format
Better number format for memory usage
This commit is contained in:
commit
89313d8bfb
1 changed files with 2 additions and 1 deletions
|
@ -45,6 +45,7 @@
|
||||||
#include "scene/gui/tab_container.h"
|
#include "scene/gui/tab_container.h"
|
||||||
#include "scene/gui/texture_button.h"
|
#include "scene/gui/texture_button.h"
|
||||||
#include "scene/gui/tree.h"
|
#include "scene/gui/tree.h"
|
||||||
|
#include "ustring.h"
|
||||||
|
|
||||||
class ScriptEditorDebuggerVariables : public Object {
|
class ScriptEditorDebuggerVariables : public Object {
|
||||||
|
|
||||||
|
@ -642,7 +643,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
|
||||||
v /= 1024.0;
|
v /= 1024.0;
|
||||||
}
|
}
|
||||||
tt += " bytes";
|
tt += " bytes";
|
||||||
vs = rtos(v) + " " + unit;
|
vs = String::num(v, 2) + " " + unit;
|
||||||
} break;
|
} break;
|
||||||
case Performance::MONITOR_TYPE_TIME: {
|
case Performance::MONITOR_TYPE_TIME: {
|
||||||
tt += " seconds";
|
tt += " seconds";
|
||||||
|
|
Loading…
Reference in a new issue