block: origin censorship is a warning, not critical
This commit is contained in:
parent
a7432a6b96
commit
ad63a9ff41
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ def threshold_origin(domain_name):
|
|||
])
|
||||
block_perc = round((total_blocks / total * 100), 1)
|
||||
ooni[country]["block_perc"] = block_perc
|
||||
ooni[country]["state"] = AlarmState.CRITICAL if block_perc > 20 else AlarmState.OK
|
||||
ooni[country]["state"] = AlarmState.WARNING if block_perc > 20 else AlarmState.OK
|
||||
ooni[country]["message"] = f"Blocked in {block_perc}% of measurements"
|
||||
return ooni
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue