Minor changes

This commit is contained in:
Loic Guegan 2023-07-16 17:26:03 +02:00
parent dd12a4b42f
commit f1bbb2449f
2 changed files with 11 additions and 1 deletions

View file

@ -70,6 +70,7 @@ int main (int argc, char *argv [])
while(!__stop){
interval=INTERVAL(__loginterval);
*logfilepath='\0'; // Clear previous path
sprintf(logfilepath,"%s/%ld",__logdir,interval);
logptr=fopen(logfilepath,"w");
// Write file header: