summarize_stats: one newline to stdout, not stderr

This commit is contained in:
nick black 2021-07-11 17:18:17 -04:00 committed by nick black
parent fb8b453d61
commit c2763fb6c7

View File

@ -164,7 +164,8 @@ void summarize_stats(notcurses* nc){
qprefix(stats->render_min_ns, NANOSECS_IN_SEC, minbuf, 0); qprefix(stats->render_min_ns, NANOSECS_IN_SEC, minbuf, 0);
qprefix(stats->render_max_ns, NANOSECS_IN_SEC, maxbuf, 0); qprefix(stats->render_max_ns, NANOSECS_IN_SEC, maxbuf, 0);
qprefix(stats->render_ns / stats->renders, NANOSECS_IN_SEC, avgbuf, 0); qprefix(stats->render_ns / stats->renders, NANOSECS_IN_SEC, avgbuf, 0);
fprintf(stderr, "\n%ju render%s, %ss (%ss min, %ss avg, %ss max)\n", ncfputc('\n', stdout);
fprintf(stderr, "%ju render%s, %ss (%ss min, %ss avg, %ss max)\n",
stats->renders, stats->renders == 1 ? "" : "s", stats->renders, stats->renders == 1 ? "" : "s",
totalbuf, minbuf, avgbuf, maxbuf); totalbuf, minbuf, avgbuf, maxbuf);
qprefix(stats->raster_ns, NANOSECS_IN_SEC, totalbuf, 0); qprefix(stats->raster_ns, NANOSECS_IN_SEC, totalbuf, 0);