fix print of millisec
This commit is contained in:
parent
6b49aaf863
commit
4636173fed
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ static void print_raw(const char* s)
|
||||||
} else if (0 == toml_rtots(s, &ts)) {
|
} else if (0 == toml_rtots(s, &ts)) {
|
||||||
char millisec[10];
|
char millisec[10];
|
||||||
if (ts.millisec)
|
if (ts.millisec)
|
||||||
sprintf(millisec, ".%d", *ts.millisec);
|
sprintf(millisec, ".%03d", *ts.millisec);
|
||||||
else
|
else
|
||||||
millisec[0] = 0;
|
millisec[0] = 0;
|
||||||
if (ts.year && ts.hour) {
|
if (ts.year && ts.hour) {
|
||||||
|
|
Loading…
Reference in a new issue