fixed: changed "%g" to "%f" when printing request/ezc times

SetNonZeroDigitsAfterComma() incorrectly terminated the string if the format was "%g" (in the case where it was used as %e)
This commit is contained in:
Tomasz Sowa 2021-06-24 16:11:02 +02:00
parent 2f1cdcf379
commit bf1f0954b9
1 changed files with 1 additions and 1 deletions

View File

@ -1502,7 +1502,7 @@ void timespec_to_stream(timespec & val, pt::Stream & stream)
char buf[50];
double val_double = timespec_to_double(val);
sprintf(buf, "%g", val_double);
sprintf(buf, "%f", val_double);
SetNonZeroDigitsAfterComma(buf, 2);
stream << buf;