demo: summary table adds render%

This commit is contained in:
nick black 2020-01-07 13:23:16 -05:00
parent f092e62bca
commit d8c6e2434a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -449,9 +449,10 @@ int main(int argc, char** argv){
qprefix(nsdelta, GIG, timebuf, 0);
bprefix(totalbytes, 1, totalbuf, 0);
qprefix(totalrenderns, GIG, rtimebuf, 0);
printf("══╧═╧════════╪══════╪═════════╪═════════╪══╧══════╛\n");
printf(" %*ss│%6lu│%*s│ %*ss│\n", PREFIXSTRLEN, timebuf,
totalframes, BPREFIXSTRLEN, totalbuf, PREFIXSTRLEN, rtimebuf);
printf("══╧═╧════════╪══════╪═════════╪═════════╪══╪══════╛\n");
printf(" %*ss│%6lu│%*s│ %*ss│%2ld│\n", PREFIXSTRLEN, timebuf,
totalframes, BPREFIXSTRLEN, totalbuf, PREFIXSTRLEN, rtimebuf,
nsdelta ? totalrenderns * 100 / nsdelta : 0);
if(failed){
fprintf(stderr, " Error running demo. Is \"%s\" the correct data path?\n", datadir);
}