Skip to content

Commit

Permalink
Amend help text to database.maxDBdays
Browse files Browse the repository at this point in the history
Signed-off-by: yubiuser <[email protected]>
  • Loading branch information
yubiuser committed Oct 13, 2024
1 parent 8504bb9 commit a5cfba2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ static void initConfig(struct config *conf)
conf->database.DBimport.c = validate_stub; // Only type-based checking

conf->database.maxDBdays.k = "database.maxDBdays";
conf->database.maxDBdays.h = "How long should queries be stored in the database [days]?";
conf->database.maxDBdays.h = "How long should queries be stored in the database [days]?\n Setting this value to 0 will disable the database.";
conf->database.maxDBdays.t = CONF_INT;
conf->database.maxDBdays.d.i = (365/4);
conf->database.maxDBdays.c = validate_stub; // Only type-based checking
Expand Down
1 change: 1 addition & 0 deletions test/pihole.toml
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@
DBimport = true

# How long should queries be stored in the database [days]?
# Setting this value to 0 will disable the database.
maxDBdays = 91

# How often do we store queries in FTL's database [seconds]?
Expand Down

0 comments on commit a5cfba2

Please sign in to comment.