Skip to content

Commit

Permalink
Merge pull request #2285 from pi-hole/fix/maxHistory
Browse files Browse the repository at this point in the history
Follow-up on #2275
  • Loading branch information
DL6ER authored Feb 25, 2025
2 parents 0df08a4 + ff9d81c commit a0e4cc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/docs/content/specs/history.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ components:
- Metrics
operationId: "get_activity_metrics"
description: |
Request data needed to generate the \"Query over last 24 hours\" graph. The sum of the values in the individual data arrays may be smaller than the total number of queries for the corresponding timestamp. The remaining queries are queries that do not fit into the shown categories (e.g. database busy, unknown status queries, etc.).
Request data needed to generate the total queries over time graph. The sum of the values in the individual data arrays may be smaller than the total number of queries for the corresponding timestamp. The remaining queries are queries that do not fit into the shown categories (e.g. database busy, unknown status queries, etc.).
responses:
'200':
description: OK
Expand Down
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 a0e4cc9

Please sign in to comment.