diff options
| author | Shulhan <ms@kilabit.info> | 2025-07-31 22:32:29 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-08-01 00:39:45 +0700 |
| commit | 5a90a6822fc0d6a0d0d07b4b4583f9dbc20ba0e6 (patch) | |
| tree | 299946be1f991f73aabbb34804d60422896d368a /reports.go | |
| parent | bec99d46d65c451f18000a7247d3df06765a3894 (diff) | |
| download | lilin-5a90a6822fc0d6a0d0d07b4b4583f9dbc20ba0e6.tar.xz | |
all: limit the history in ServiceReport
When the service keep scanning longer than let say 1 day, the history
of service report keep growing.
We did not want this history consume memory, so at one point we need
to purge it.
This changes limit the maximum history to 120 items.
Diffstat (limited to 'reports.go')
0 files changed, 0 insertions, 0 deletions
