diff options
Diffstat (limited to 'multiload/load-graph.c')
-rw-r--r-- | multiload/load-graph.c | 7 |
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; } |