summaryrefslogtreecommitdiff
path: root/multiload
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-07-21 16:02:31 +0200
committerraveit65 <[email protected]>2020-07-26 11:11:51 +0200
commit63d4531f4947e46610fb26fc57fd15f1283416f4 (patch)
treea96944308e48adba43fe014b5cf1481f77a0a0ae /multiload
parent88e553e3b557b5a4f92199aeddf8b0e5bb7868a8 (diff)
downloadmate-applets-63d4531f4947e46610fb26fc57fd15f1283416f4.tar.bz2
mate-applets-63d4531f4947e46610fb26fc57fd15f1283416f4.tar.xz
multiload: the initialization of the variable is not really used
Diffstat (limited to 'multiload')
-rw-r--r--multiload/load-graph.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/multiload/load-graph.c b/multiload/load-graph.c
index f1d1a9d0..bf004394 100644
--- a/multiload/load-graph.c
+++ b/multiload/load-graph.c
@@ -102,10 +102,9 @@ load_graph_draw (LoadGraph *g)
for (i = 0; i < g->draw_width; i++)
{
g->pos [i] = g->draw_height - 1;
- combined = 0;
- combined += g->data[i][0];
- combined += g->data[i][1];
- combined += g->data[i][2];
+ combined = g->data[i][0] +
+ g->data[i][1] +
+ g->data[i][2];
if (combined > maxnet)
maxnet = combined;
}