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:
parent
2f1cdcf379
commit
bf1f0954b9
|
@ -1502,7 +1502,7 @@ void timespec_to_stream(timespec & val, pt::Stream & stream)
|
||||||
char buf[50];
|
char buf[50];
|
||||||
|
|
||||||
double val_double = timespec_to_double(val);
|
double val_double = timespec_to_double(val);
|
||||||
sprintf(buf, "%g", val_double);
|
sprintf(buf, "%f", val_double);
|
||||||
SetNonZeroDigitsAfterComma(buf, 2);
|
SetNonZeroDigitsAfterComma(buf, 2);
|
||||||
|
|
||||||
stream << buf;
|
stream << buf;
|
||||||
|
|
Loading…
Reference in New Issue