diff options
Diffstat (limited to 'src/plugins/stats/statistics.c')
-rw-r--r-- | src/plugins/stats/statistics.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/stats/statistics.c b/src/plugins/stats/statistics.c index a93c9bff..e9375e06 100644 --- a/src/plugins/stats/statistics.c +++ b/src/plugins/stats/statistics.c | |||
@@ -117,8 +117,8 @@ static void load_graph_draw(LoadGraph *g) { | |||
117 | g->disp->allocation.height); | 117 | g->disp->allocation.height); |
118 | 118 | ||
119 | max = 0.26; /* force showing at least the 25% line */ | 119 | max = 0.26; /* force showing at least the 25% line */ |
120 | for (i = 0; i < g->num_points - 1; i++) | 120 | for (i = 0; i < g->num_points - 1; i++) |
121 | for (j=0;j<g->count;j++) | 121 | for (j=0;j<g->count;j++) |
122 | if (g->data[i][j] > max) | 122 | if (g->data[i][j] > max) |
123 | max = g->data[i][j]; | 123 | max = g->data[i][j]; |
124 | max = max * 1.01; /* leave top 1% free */ | 124 | max = max * 1.01; /* leave top 1% free */ |
@@ -130,7 +130,7 @@ static void load_graph_draw(LoadGraph *g) { | |||
130 | for (i = 1; i < 5; i++) { | 130 | for (i = 1; i < 5; i++) { |
131 | gint y1 = g->draw_height + 1 - i * dely; | 131 | gint y1 = g->draw_height + 1 - i * dely; |
132 | if ( (dely < 30) && (i != 4) ) | 132 | if ( (dely < 30) && (i != 4) ) |
133 | continue; /* only print additional | 133 | continue; /* only print additional |
134 | lines if there is enough space! */ | 134 | lines if there is enough space! */ |
135 | if (y1 > 0) { | 135 | if (y1 > 0) { |
136 | const gchar * label[] = { | 136 | const gchar * label[] = { |