git.ucc.asn.au
/
matches
/
MCTX3420.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increase precision of timestamps
[matches/MCTX3420.git]
/
server
/
data.c
diff --git
a/server/data.c
b/server/data.c
index
3824833
..
edfd4c3
100644
(file)
--- a/
server/data.c
+++ b/
server/data.c
@@
-13,9
+13,8
@@
void Data_Init(DataFile * df)
{
// Everything is NULL
void Data_Init(DataFile * df)
{
// Everything is NULL
-
df->filename = NULL
;
+
memset(df, 0, sizeof(DataFile))
;
pthread_mutex_init(&(df->mutex), NULL);
pthread_mutex_init(&(df->mutex), NULL);
- df->file = NULL;
}
/**
}
/**
@@
-162,13
+161,13
@@
void Data_PrintByIndexes(DataFile * df, int start_index, int end_index, DataForm
switch (format)
{
case JSON:
switch (format)
{
case JSON:
- fmt_string = "[%f,%f]";
+ fmt_string = "[%
.9
f,%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 = "%f\t%f";
+ fmt_string = "%
.9
f\t%f";
separator = '\n';
break;
}
separator = '\n';
break;
}
UCC
git Repository :: git.ucc.asn.au