summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5a9a051)
Since we have nanosecond resolution. Theoretically.
switch (format)
{
case JSON:
switch (format)
{
case JSON:
- fmt_string = "[%f,%f]";
+ fmt_string = "[%.9f,%f]";
separator = ',';
// For JSON we need an opening bracket
FCGI_PrintRaw("[");
break;
case TSV:
separator = ',';
// For JSON we need an opening bracket
FCGI_PrintRaw("[");
break;
case TSV:
+ fmt_string = "%.9f\t%f";
separator = '\n';
break;
}
separator = '\n';
break;
}
*/
void FCGI_JSONDouble(const char *key, double value)
{
*/
void FCGI_JSONDouble(const char *key, double value)
{
- printf(",\r\n\t\"%s\" : %f", key, value);
+ printf(",\r\n\t\"%s\" : %.9f", key, value);