Merge branch 'master' of github.com:dankamongmen/notcurses

This commit is contained in:
nick black 2020-03-19 08:27:22 -04:00
commit bb2c469168
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 7 additions and 7 deletions

View File

@ -6,11 +6,11 @@ blingful TUI library for modern terminal emulators. definitely not curses.
for more information, see [dankwiki](https://nick-black.com/dankwiki/index.php/Notcurses)
and the [man pages](https://nick-black.com/notcurses). I am working on a
coherent [guidebook](https://nick-black.com/htp-notcurses.pdf), though it has
not yet reached even first draft status. In addition, there is
[Doxygen](https://nick-black.com/notcurses/html/) output. There is a
[mailing list](https://groups.google.com/forum/#!forum/notcurses) which
can be reached via notcurses@googlegroups.com.
coherent [guidebook](https://nick-black.com/htp-notcurses.pdf), which ought
be published in April 2020. In addition, there is
[Doxygen](https://nick-black.com/notcurses/html/) output. There is a [mailing
list](https://groups.google.com/forum/#!forum/notcurses) which can be reached
via notcurses@googlegroups.com.
notcurses is available in the Arch [AUR](https://aur.archlinux.org/packages/notcurses/).
Packages for Debian Unstable and Ubuntu Focal are available from [DSSCAW](https://www.dsscaw.com/apt.html).

View File

@ -364,9 +364,9 @@ summary_json(FILE* f, const char* spec, int rows, int cols){
if(results[i].result || !results[i].stats.renders){
continue;
}
ret |= (fprintf(f, "\"%s\":{\"bytes\":\"%ju\",\"frames\":\"%ju\",\"ns\":\"%ju\"},",
ret |= (fprintf(f, "\"%s\":{\"bytes\":\"%ju\",\"frames\":\"%ju\",\"ns\":\"%ju\"}%s",
demos[results[i].selector - 'a'].name, results[i].stats.render_bytes,
results[i].stats.renders, results[i].timens) < 0);
results[i].stats.renders, results[i].timens, i < strlen(spec) - 1 ? "," : "") < 0);
}
ret |= (fprintf(f, "}}}\n") < 0);
return ret;