stats: count up sprixel elisions/emissions #1566

This commit is contained in:
nick black 2021-04-21 11:51:46 -04:00
parent 6c7b40debf
commit ac72c982d7
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 3 additions and 1 deletions

View File

@ -888,7 +888,9 @@ clean_sprixels(notcurses* nc, const ncpile* p, FILE* out){
nc->rstate.hardcursorpos = true;
parent = &s->next;
}
++nc->stats.sprixelemissions;
}else{
++nc->stats.sprixelelisions;
parent = &s->next;
}
}

View File

@ -187,7 +187,7 @@ void summarize_stats(notcurses* nc){
totalbuf, minbuf, avgbuf, maxbuf);
}
if(stats->renders || stats->failed_renders){
fprintf(stderr, "%ju failed render%s, %ju failed rasters%s, %ju refresh%s\n",
fprintf(stderr, "%ju failed render%s, %ju failed raster%s, %ju refresh%s\n",
stats->failed_renders,
stats->failed_renders == 1 ? "" : "s",
stats->failed_writeouts,