aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/stats/statistics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/stats/statistics.c')
-rw-r--r--src/plugins/stats/statistics.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/stats/statistics.c b/src/plugins/stats/statistics.c
index e9375e06..5852c79a 100644
--- a/src/plugins/stats/statistics.c
+++ b/src/plugins/stats/statistics.c
@@ -27,7 +27,7 @@
27#include <GNUnet/gnunet_getoption_lib.h> 27#include <GNUnet/gnunet_getoption_lib.h>
28#include "functions.h" 28#include "functions.h"
29 29
30#define MAX_COLOR 5 30#define MAX_COLOR 6
31#define GNOME_PAD_SMALL 2 31#define GNOME_PAD_SMALL 2
32#define FRAME_WIDTH 0 32#define FRAME_WIDTH 0
33 33
@@ -174,7 +174,7 @@ static void load_graph_draw(LoadGraph *g) {
174 gint y2 = g->data[i+1][j] / max * g->draw_height - 1; 174 gint y2 = g->data[i+1][j] / max * g->draw_height - 1;
175 175
176 if ((g->data[i][j] != -1) && (g->data[i+1][j] != -1)) { 176 if ((g->data[i][j] != -1) && (g->data[i+1][j] != -1)) {
177 if (stats[g->statIdx].fill == NO) { 177 if (stats[g->statIdx].fill <= i) {
178 gdk_draw_line(g->pixmap, g->gc, 178 gdk_draw_line(g->pixmap, g->gc,
179 g->draw_width - x2, 179 g->draw_width - x2,
180 g->draw_height - y2, 180 g->draw_height - y2,
@@ -465,8 +465,10 @@ void init_stats(struct GE_Context * ectx,
465 &config.mem_color[3]); 465 &config.mem_color[3]);
466 gdk_color_parse("gray", 466 gdk_color_parse("gray",
467 &config.mem_color[4]); 467 &config.mem_color[4]);
468 gdk_color_parse("magenta",
469 &config.mem_color[5]);
468 GE_ASSERT(ectx, 470 GE_ASSERT(ectx,
469 MAX_COLOR == 5); 471 MAX_COLOR == 6);
470 i = -1; 472 i = -1;
471 while (stats[++i].paneName != NULL) { 473 while (stats[++i].paneName != NULL) {
472 sys_box = create_sys_view(i, 474 sys_box = create_sys_view(i,