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
880ab32516
commit
c5ca719d68
1 changed files with 2 additions and 1 deletions
|
@ -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';
|
||||||
|
|
Loading…
Add table
Reference in a new issue