Minor changes

This commit is contained in:
Loic Guegan 2023-07-16 11:03:53 +02:00
parent 880ab32516
commit c5ca719d68

View file

@ -46,7 +46,7 @@ int main (int argc, char *argv [])
printf("Log interval is too small (min=%ds)\n",MIN_INTERVAL); printf("Log interval is too small (min=%ds)\n",MIN_INTERVAL);
exit(2); exit(2);
} }
if(FILE_EXISTS(__regpower)){ if(FILE_EXISTS(__regpower)){ // TODO UPDATE!!
printf("Logger cannot access to %s\n",__regpower); printf("Logger cannot access to %s\n",__regpower);
exit(3); exit(3);
} }
@ -61,6 +61,7 @@ int main (int argc, char *argv [])
int power; int power;
time_t interval; time_t interval;
struct timespec power_ts; struct timespec power_ts;
while(1){ while(1){
interval=INTERVAL(__loginterval); interval=INTERVAL(__loginterval);
*logfilepath='\0'; *logfilepath='\0';