Skip to content

Commit

Permalink
NetworkIOMeter: show packet rate in meter mode
Browse files Browse the repository at this point in the history
Currently we have byte rate only.
  • Loading branch information
eworm-de authored and BenBE committed Dec 6, 2022
1 parent 1fa7551 commit 424b45e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NetworkIOMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ static void NetworkIOMeter_updateValues(Meter* this) {
char bufferBytesReceived[12], bufferBytesTransmitted[12];
Meter_humanUnit(bufferBytesReceived, cached_rxb_diff, sizeof(bufferBytesReceived));
Meter_humanUnit(bufferBytesTransmitted, cached_txb_diff, sizeof(bufferBytesTransmitted));
xSnprintf(this->txtBuffer, sizeof(this->txtBuffer), "rx:%siB/s tx:%siB/s", bufferBytesReceived, bufferBytesTransmitted);
xSnprintf(this->txtBuffer, sizeof(this->txtBuffer), "rx:%siB/s tx:%siB/s %d/%dpkts/s",
bufferBytesReceived, bufferBytesTransmitted, cached_rxp_diff, cached_txp_diff);
}

static void NetworkIOMeter_display(ATTR_UNUSED const Object* cast, RichString* out) {
Expand Down

0 comments on commit 424b45e

Please sign in to comment.