if (data.count != 0) {
res = data.sum / data.count;
- if (st->normalizer != NULL) {
- res = st->normalizer (task->cfg, res, st->normalizer_data);
- }
}
else {
res = 0;
#ifdef WITH_LUA
max = call_classifier_post_callbacks (ctx->cfg, task, max);
#endif
+ if (st->normalizer != NULL) {
+ max = st->normalizer (task->cfg, max, st->normalizer_data);
+ }
insert_result (task, ctx->cfg->metric, sel->symbol, max, cur);
}
}
qsort (pool->files, pool->opened, sizeof (stat_file_t), cmpstatfile);
memory_pool_unlock_mutex (pool->lock);
- return new_file;
+ return statfile_pool_is_open (pool, filename);
}
int