mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 10:39:53 +00:00
[crowdsec]: Increase decisions to 1000 (more than default 100)
This commit is contained in:
parent
e37740e86e
commit
7b5bc19c6f
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class Decisions():
|
|||
def __init__(self):
|
||||
_state = state.read_section('scenarios')
|
||||
self.state = _state if _state is not None else {}
|
||||
self.data = call_cli('decisions', 'list')
|
||||
self.data = call_cli('decisions', 'list', '--limit', '1000')
|
||||
if self.data is not None:
|
||||
self.decisions = len(self.data)
|
||||
self.banned_ips = len(set([d['source']['ip'] for d in self.data if d['source']['scope'] == 'Ip'])) # noqa: E501
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue