From c84520472c10a5085dc9004ed3b7c8019d01c4f9 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 14 Jul 2023 22:30:02 +0200 Subject: [PATCH] Minor changes --- src/logger/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/logger/main.c b/src/logger/main.c index b7833c5..04781dc 100644 --- a/src/logger/main.c +++ b/src/logger/main.c @@ -10,6 +10,7 @@ #include #include #include "../utils.h" +#include void start(char *power_path, char *busid, char *chipaddr); @@ -42,7 +43,9 @@ void start(char *power_path, char *busid, char *chipaddr){ mkdir(outdir,0755); char outfile[255]; - sprintf(outfile,"%s/%s",outdir,"flk"); + time_t timestamp; + timestamp = time(NULL); + sprintf(outfile,"%s/%d",outdir,timestamp); printf("aa %s\n",outfile); FILE *f;