mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
ncplayer: eliminate %j conversions
This commit is contained in:
parent
1e2f3252bd
commit
f28152d95e
@ -8,6 +8,7 @@
|
|||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <inttypes.h>
|
||||||
#include <ncpp/Direct.hh>
|
#include <ncpp/Direct.hh>
|
||||||
#include <ncpp/Visual.hh>
|
#include <ncpp/Visual.hh>
|
||||||
#include <ncpp/NotCurses.hh>
|
#include <ncpp/NotCurses.hh>
|
||||||
@ -116,7 +117,7 @@ auto perframe(struct ncvisual* ncv, struct ncvisual_options* vopts,
|
|||||||
const intmax_t s = ns / NANOSECS_IN_SEC;
|
const intmax_t s = ns / NANOSECS_IN_SEC;
|
||||||
ns -= s * NANOSECS_IN_SEC;
|
ns -= s * NANOSECS_IN_SEC;
|
||||||
if(!marsh->quiet){
|
if(!marsh->quiet){
|
||||||
stdn->printf(0, NCAlign::Right, "%02jd:%02jd:%02jd.%04jd",
|
stdn->printf(0, NCAlign::Right, "%02" PRId64 ":%02" PRId64 ":%02" PRId64 ".%04" PRId64,
|
||||||
h, m, s, ns / 1000000);
|
h, m, s, ns / 1000000);
|
||||||
}
|
}
|
||||||
if(!nc.render()){
|
if(!nc.render()){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user