sr: output up to 12 significant digits for floats

This commit is contained in:
Bert Vermeulen 2012-09-02 15:41:19 +02:00
parent c0d93341cb
commit 40578aa487
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ static int data(struct sr_output *o, const uint8_t *data_in,
max = length_in / sizeof(float); max = length_in / sizeof(float);
for (i = 0; i < max;) { for (i = 0; i < max;) {
for (j = 0; j < ctx->num_enabled_probes; j++) { for (j = 0; j < ctx->num_enabled_probes; j++) {
g_string_append_printf(outstr, "%s: %f\n", g_string_append_printf(outstr, "%s: %.12f\n",
(char *)g_ptr_array_index(ctx->probelist, j), (char *)g_ptr_array_index(ctx->probelist, j),
fdata[i++]); fdata[i++]);
} }