mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-19 12:19:46 +00:00
Minor changes
This commit is contained in:
parent
cb13d2982c
commit
05bfba95c7
2 changed files with 9 additions and 3 deletions
|
@ -43,9 +43,13 @@ int main (int argc, char *argv [])
|
|||
|
||||
//----- Sanity checks
|
||||
mkdirp(__logdir);
|
||||
if(__loginterval<MIN_INTERVAL){
|
||||
printf("Log interval is too small (min=%ds)\n",MIN_INTERVAL);
|
||||
exit(2);
|
||||
}
|
||||
if(!FILE_EXISTS(__regpower)){
|
||||
printf("Logger cannot access to %s\n",__regpower);
|
||||
exit(2);
|
||||
exit(3);
|
||||
}
|
||||
|
||||
//----- Start logging
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue