Skip to content

Commit 28c5c00

Browse files
Explorer09eworm-de
authored andcommitted
NetworkIOMeter: remove code for auto-updating "total"
1 parent 8ca43c1 commit 28c5c00

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: NetworkIOMeter.c

+1-4
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");
@@ -172,7 +169,7 @@ const MeterClass NetworkIOMeter_class = {
172169
.supportedModes = METERMODE_DEFAULT_SUPPORTED,
173170
.maxItems = 2,
174171
.isPercentChart = false,
175-
.total = 100.0,
172+
.total = 1.0,
176173
.attributes = NetworkIOMeter_attributes,
177174
.name = "NetworkIO",
178175
.uiName = "Network IO",

0 commit comments

Comments
 (0)