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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/stats/statistics.c b/src/plugins/stats/statistics.c
index aa0db352..047afb35 100644
--- a/src/plugins/stats/statistics.c
+++ b/src/plugins/stats/statistics.c
@@ -367,7 +367,7 @@ load_graph_new (int statIdx, const ProcConfig * config)
367 367
368 if (stats[statIdx].count > MAX_COLOR) 368 if (stats[statIdx].count > MAX_COLOR)
369 { 369 {
370 GE_BREAK (NULL, 0); 370 GNUNET_GEBREAK (NULL, 0);
371 return NULL; 371 return NULL;
372 } 372 }
373 373
@@ -430,7 +430,7 @@ create_sys_view (int statIdx, const ProcConfig * config)
430 430
431 431
432void 432void
433init_stats (struct GE_Context *ectx, struct GC_Configuration *cfg) 433init_stats (struct GNUNET_GEContext *ectx, struct GNUNET_GC_Configuration *cfg)
434{ 434{
435 GtkWidget *sys_box; 435 GtkWidget *sys_box;
436 GtkWidget *label; 436 GtkWidget *label;
@@ -438,14 +438,14 @@ init_stats (struct GE_Context *ectx, struct GC_Configuration *cfg)
438 ProcConfig config; 438 ProcConfig config;
439 int i; 439 int i;
440 440
441 GC_get_configuration_value_number (cfg, 441 GNUNET_GC_get_configuration_value_number (cfg,
442 "GNUNET-GTK", 442 "GNUNET-GTK",
443 "STATS-INTERVAL", 443 "STATS-INTERVAL",
444 1, 444 1,
445 99 * GNUNET_CRON_YEARS, 445 99 * GNUNET_CRON_YEARS,
446 30 * GNUNET_CRON_SECONDS, &UPDATE_INTERVAL); 446 30 * GNUNET_CRON_SECONDS, &UPDATE_INTERVAL);
447 init_functions (ectx, cfg); 447 init_functions (ectx, cfg);
448 notebook = glade_xml_get_widget (getMainXML (), "statsNotebook"); 448 notebook = glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), "statsNotebook");
449 memset (&config, 0, sizeof (ProcConfig)); 449 memset (&config, 0, sizeof (ProcConfig));
450 gdk_color_parse ("black", &config.bg_color); 450 gdk_color_parse ("black", &config.bg_color);
451 gdk_color_parse ("gray", &config.frame_color); 451 gdk_color_parse ("gray", &config.frame_color);
@@ -455,7 +455,7 @@ init_stats (struct GE_Context *ectx, struct GC_Configuration *cfg)
455 gdk_color_parse ("blue", &config.mem_color[3]); 455 gdk_color_parse ("blue", &config.mem_color[3]);
456 gdk_color_parse ("gray", &config.mem_color[4]); 456 gdk_color_parse ("gray", &config.mem_color[4]);
457 gdk_color_parse ("magenta", &config.mem_color[5]); 457 gdk_color_parse ("magenta", &config.mem_color[5]);
458 GE_ASSERT (ectx, MAX_COLOR == 6); 458 GNUNET_GEASSERT (ectx, MAX_COLOR == 6);
459 i = -1; 459 i = -1;
460 while (stats[++i].paneName != NULL) 460 while (stats[++i].paneName != NULL)
461 { 461 {