Tweak error timestamp formatting to be more readable

This uses a `.` instead of `:` as the decimal separator and trims
the decimal part to 3 digits, as millisecond precision is usually
sufficient.
This commit is contained in:
Hugo Locurcio 2019-12-02 18:53:39 +01:00
parent 9607fc48a0
commit 56d884ffde
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -846,7 +846,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
time_vals.push_back(err[2]); time_vals.push_back(err[2]);
time_vals.push_back(err[3]); time_vals.push_back(err[3]);
bool e; bool e;
String time = String("%d:%02d:%02d:%04d").sprintf(time_vals, &e); String time = String("%d:%02d:%02d.%03d").sprintf(time_vals, &e);
// Rest of the error data. // Rest of the error data.
String method = err[4]; String method = err[4];