mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-07 04:16:26 +02:00
Minor changes
This commit is contained in:
parent
1770c5f79e
commit
c84520472c
1 changed files with 4 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include "../utils.h"
|
#include "../utils.h"
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
void start(char *power_path, char *busid, char *chipaddr);
|
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);
|
mkdir(outdir,0755);
|
||||||
|
|
||||||
char outfile[255];
|
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);
|
printf("aa %s\n",outfile);
|
||||||
|
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
|
Loading…
Add table
Reference in a new issue