diff options
Diffstat (limited to 'src/plugins/stats/statistics.c')
-rw-r--r-- | src/plugins/stats/statistics.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/plugins/stats/statistics.c b/src/plugins/stats/statistics.c index 047afb35..04b2fb66 100644 --- a/src/plugins/stats/statistics.c +++ b/src/plugins/stats/statistics.c | |||
@@ -430,7 +430,8 @@ create_sys_view (int statIdx, const ProcConfig * config) | |||
430 | 430 | ||
431 | 431 | ||
432 | void | 432 | void |
433 | init_stats (struct GNUNET_GEContext *ectx, struct GNUNET_GC_Configuration *cfg) | 433 | init_stats (struct GNUNET_GEContext *ectx, |
434 | struct GNUNET_GC_Configuration *cfg) | ||
434 | { | 435 | { |
435 | GtkWidget *sys_box; | 436 | GtkWidget *sys_box; |
436 | GtkWidget *label; | 437 | GtkWidget *label; |
@@ -439,13 +440,15 @@ init_stats (struct GNUNET_GEContext *ectx, struct GNUNET_GC_Configuration *cfg) | |||
439 | int i; | 440 | int i; |
440 | 441 | ||
441 | GNUNET_GC_get_configuration_value_number (cfg, | 442 | GNUNET_GC_get_configuration_value_number (cfg, |
442 | "GNUNET-GTK", | 443 | "GNUNET-GTK", |
443 | "STATS-INTERVAL", | 444 | "STATS-INTERVAL", |
444 | 1, | 445 | 1, |
445 | 99 * GNUNET_CRON_YEARS, | 446 | 99 * GNUNET_CRON_YEARS, |
446 | 30 * GNUNET_CRON_SECONDS, &UPDATE_INTERVAL); | 447 | 30 * GNUNET_CRON_SECONDS, |
448 | &UPDATE_INTERVAL); | ||
447 | init_functions (ectx, cfg); | 449 | init_functions (ectx, cfg); |
448 | notebook = glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), "statsNotebook"); | 450 | notebook = |
451 | glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), "statsNotebook"); | ||
449 | memset (&config, 0, sizeof (ProcConfig)); | 452 | memset (&config, 0, sizeof (ProcConfig)); |
450 | gdk_color_parse ("black", &config.bg_color); | 453 | gdk_color_parse ("black", &config.bg_color); |
451 | gdk_color_parse ("gray", &config.frame_color); | 454 | gdk_color_parse ("gray", &config.frame_color); |