Commit a2b5e1a7 authored by Miguel Jimenez Lopez's avatar Miguel Jimenez Lopez

irq-demo: Show iterations even when no verbose mode is configured

parent e8866fd4
......@@ -138,7 +138,6 @@ static void log_stats_engine(stats_engine engine, int verbose)
LOG(engine, "\n===================== STATS ENGINE LOG =====================\n");
if(verbose) {
LOG(engine, "Iterations: %d\n", engine->n_iter);
LOG(engine, "Timestamps in buffer: %d", engine->n_ts);
LOG(engine, "Next timestamp (index): %d\n", engine->next_ts);
......@@ -156,9 +155,11 @@ static void log_stats_engine(stats_engine engine, int verbose)
LOG(engine, "\tdiff[%d]: %f %s",
i, engine->diff_ts[i], METRICS_UNIT);
}
LOG(engine, "");
}
LOG(engine, "\nMetrics => Total timestamps: %d, Timestamps per second: %d\n"
LOG(engine, "Iterations: %d", engine->n_iter);
LOG(engine, "Metrics => Total timestamps: %d, Timestamps per second: %d\n"
"max: %f %s, min %f %s\n"
"mean: %f %s, stdev: %f %s",
engine->stats.ts_total, engine->stats.ts_per_second,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment