Increase print buffer in NetworkIOMeter_display

In case the packet values wrap-around or have other weird values, the
current buffer might be to small
This commit is contained in:
Christian Göttsche 2020-10-20 19:20:19 +02:00 committed by cgzones
parent 8a08a3209c
commit 45a22080c9

View File

@ -63,7 +63,7 @@ static void NetworkIOMeter_updateValues(ATTR_UNUSED Meter* this, char* buffer, i
}
static void NetworkIOMeter_display(ATTR_UNUSED const Object* cast, RichString* out) {
char buffer[32];
char buffer[64];
RichString_write(out, CRT_colors[METER_TEXT], "rx: ");
Meter_humanUnit(buffer, cached_rxb_diff, sizeof(buffer));