UPD: ocat -v shows compiled-in values, ot-recorder -V runtime ones

closes #397
This commit is contained in:
Jan-Piet Mens 2022-08-15 15:10:46 +02:00
parent 5ecb2ae670
commit eb796d619c
2 changed files with 6 additions and 3 deletions

1
misc.c
View File

@ -281,6 +281,7 @@ void display_variables(struct udata *ud)
d_bool("skip _demo", ud->skipdemo);
d_bool("perform reverse geo", ud->revgeo);
d_str("OTR_GEOKEY", ud->geokey);
d_int("OTR_PRECISION", geohash_prec());
d_bool("do not write .rec", ud->norec);
#ifdef WITH_HTTP

8
ocat.c
View File

@ -102,6 +102,11 @@ void print_versioninfo()
#else
printf("\tWITH_HTTP = no\n");
#endif
#ifdef WITH_TOURS
printf("\tWITH_TOURS = yes\n");
#else
printf("\tWITH_TOURS = no\n");
#endif
#ifdef WITH_LUA
printf("\tWITH_LUA = yes\n");
#endif
@ -115,10 +120,7 @@ void print_versioninfo()
printf("\tWITH_KILL = yes\n");
#endif
printf("\tCONFIGFILE = \"%s\"\n", CONFIGFILE);
printf("\tSTORAGEDEFAULT = \"%s\"\n", STORAGEDEFAULT);
printf("\tSTORAGEDIR = \"%s\"\n", STORAGEDIR);
printf("\tDOCROOT = \"%s\"\n", DOCROOT);
printf("\tGHASHPREC = %d\n", GHASHPREC);
printf("\tDEFAULT_HISTORY_HOURS = %d\n", DEFAULT_HISTORY_HOURS);
printf("\tJSON_INDENT = \"%s\"\n", (JSON_INDENT) ? JSON_INDENT : "NULL");
#if WITH_MQTT