2
0
forked from Ivasoft/DSView

The time string of csv file header used the session time

This commit is contained in:
dreamsource-tai
2024-07-23 15:10:12 +08:00
parent c428bd66e3
commit 499f90aebe
6 changed files with 24 additions and 3 deletions

View File

@@ -533,6 +533,8 @@ struct sr_output {
void *priv;
uint64_t start_sample_index;
char time_string[30];
};
/** Generic option struct used by various subsystems. */

View File

@@ -154,8 +154,8 @@ static GString *gen_header(const struct sr_output *o)
/* Some metadata */
t = time(NULL);
g_string_append_printf(header, "; CSV, generated by %s on %s",
PACKAGE_STRING, ctime(&t));
g_string_append_printf(header, "; CSV, generated by %s on %s\n",
PACKAGE_STRING, o->time_string); //ctime(&t)
/* Columns / channels */
if (ctx->type == SR_CHANNEL_LOGIC)