forked from Ivasoft/DSView
The time string of csv file header used the session time
This commit is contained in:
@@ -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. */
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user