item->s->avg_time);
}
- printf ("------------------------------------------------=----------------\n");
+ printf ("-----------------------------------------------------------------\n");
}
l = g_list_next (l);
}
l = g_list_first (cfg->metrics_list);
while (l) {
metric = l->data;
- if (!init_symbols_cache (cfg->cfg_pool, metric->cache, metric->cache_filename)) {
+ if (metric->cache && !init_symbols_cache (cfg->cfg_pool, metric->cache, metric->cache_filename)) {
exit (EXIT_FAILURE);
}
l = g_list_next (l);
cache->items = new;
/* Create new saved_cache_items */
- for (i = old - 1; i < cache->cur_items; i ++) {
+ for (i = old; i < cache->cur_items; i ++) {
cache->items[i].s = g_new0 (struct saved_cache_item, 1);
}
}