Added hint in startup message to show where rhizome database size limit

is set.
This commit is contained in:
gardners 2012-03-05 12:06:36 +13:00 committed by Jeremy Lakeman
parent ec8a81c206
commit c9478659db

View File

@ -58,6 +58,7 @@ int rhizome_opendb()
rhizome_space=1024LL*atof(confValueGet("rhizome_kb","1024")); rhizome_space=1024LL*atof(confValueGet("rhizome_kb","1024"));
fprintf(stderr,"Rhizome will use %lldKB of storage for its database.\n", fprintf(stderr,"Rhizome will use %lldKB of storage for its database.\n",
rhizome_space/1024LL); rhizome_space/1024LL);
fprintf(stderr," serval.conf:rhizome_kb=%.f\n",rhizome_space/1024.0);
/* Create tables if required */ /* Create tables if required */
if (sqlite3_exec(rhizome_db,"PRAGMA auto_vacuum=2;",NULL,NULL,NULL)) { if (sqlite3_exec(rhizome_db,"PRAGMA auto_vacuum=2;",NULL,NULL,NULL)) {