diff options
author | rbuj <[email protected]> | 2020-07-26 16:21:46 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-07-29 19:28:08 +0200 |
commit | c7077cfd71cc74222db699a910f8507c5c68b98c (patch) | |
tree | 0ce78b34e753f1fdb71a6908f34c55d688eee99a /multiload/load-graph.c | |
parent | 3733313e90b81cb171d3ece44c537c435f42c090 (diff) | |
download | mate-applets-c7077cfd71cc74222db699a910f8507c5c68b98c.tar.bz2 mate-applets-c7077cfd71cc74222db699a910f8507c5c68b98c.tar.xz |
multiload: Use the id instead of the name to identify the graph type
Diffstat (limited to 'multiload/load-graph.c')
-rw-r--r-- | multiload/load-graph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/multiload/load-graph.c b/multiload/load-graph.c index bf004394..583803f9 100644 --- a/multiload/load-graph.c +++ b/multiload/load-graph.c @@ -70,7 +70,7 @@ load_graph_draw (LoadGraph *g) cairo_set_line_join (cr, CAIRO_LINE_JOIN_ROUND); /* all graphs except Load and Net go this path */ - if (g->id != 4 && g->id != 2) + if (g->id != graph_loadavg && g->id != graph_netload2) { for (i = 0; i < g->draw_width; i++) g->pos [i] = g->draw_height - 1; @@ -92,7 +92,7 @@ load_graph_draw (LoadGraph *g) } } /* This is for network graph */ - else if (g->id == 2) + else if (g->id == graph_netload2) { guint maxnet = 1; gint segments = 1; |