Skip to content

Commit c5f3eb8

Browse files
committed
NetworkIOMeter: remove code for auto-updating "total"
1 parent db279a4 commit c5f3eb8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

NetworkIOMeter.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ static void NetworkIOMeter_updateValues(Meter* this) {
111111

112112
this->values[0] = cached_rxb_diff;
113113
this->values[1] = cached_txb_diff;
114-
if (cached_rxb_diff + cached_txb_diff > this->total) {
115-
this->total = cached_rxb_diff + cached_txb_diff;
116-
}
117114

118115
if (status == RATESTATUS_NODATA) {
119116
xSnprintf(this->txtBuffer, sizeof(this->txtBuffer), "no data");
@@ -171,7 +168,7 @@ const MeterClass NetworkIOMeter_class = {
171168
.defaultMode = TEXT_METERMODE,
172169
.maxItems = 2,
173170
.isPercentChart = false,
174-
.total = 100.0,
171+
.total = 1.0,
175172
.attributes = NetworkIOMeter_attributes,
176173
.name = "NetworkIO",
177174
.uiName = "Network IO",

0 commit comments

Comments
 (0)