Merge pull request #13246 from volzhs/memory-format

Better number format for memory usage
This commit is contained in:
Rémi Verschelde 2017-11-26 20:34:35 +01:00 committed by GitHub
commit 89313d8bfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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