mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
summarize_stats: one newline to stdout, not stderr
This commit is contained in:
parent
fb8b453d61
commit
c2763fb6c7
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user