void Data_Init(DataFile * df)
{
// Everything is NULL
- df->filename = NULL;
+ memset(df, 0, sizeof(DataFile));
pthread_mutex_init(&(df->mutex), NULL);
- df->file = NULL;
}
/**
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:
- fmt_string = "%f\t%f";
+ fmt_string = "%.9f\t%f";
separator = '\n';
break;
}