Skip to content

Commit

Permalink
Restart FTL to import more data in case of enlarging webserver.api.ma…
Browse files Browse the repository at this point in the history
…xHistory. The graph would stay mostly empty (until it fills naturally over time), otherweise

Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Feb 25, 2025
1 parent a43d078 commit ff9d81c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,7 @@ static void initConfig(struct config *conf)
conf->webserver.api.maxHistory.k = "webserver.api.maxHistory";
conf->webserver.api.maxHistory.h = "How much history should be imported from the database and returned by the API [seconds]? (max 24*60*60 = 86400)";
conf->webserver.api.maxHistory.t = CONF_UINT;
conf->webserver.api.maxHistory.f = FLAG_RESTART_FTL; // Restart FTL to import more data in case of enlarging of this value
conf->webserver.api.maxHistory.d.ui = MAXLOGAGE*3600;
conf->webserver.api.maxHistory.c = validate_stub; // Only type-based checking

Expand Down

0 comments on commit ff9d81c

Please sign in to comment.