[skyeye-governance] Fix suspended guard check consistency in weekly-scan.js
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/33ac7cc1-616d-426c-9b8f-6ad1a72df739
This commit is contained in:
parent
5af416d710
commit
e145f358f8
|
|
@ -61,7 +61,7 @@ function countGuards() {
|
||||||
const guard = loadJSON(path.join(guardsDir, file));
|
const guard = loadJSON(path.join(guardsDir, file));
|
||||||
if (guard) {
|
if (guard) {
|
||||||
if (guard.status === 'active') active++;
|
if (guard.status === 'active') active++;
|
||||||
else if (guard.mode === 'suspended') suspended++;
|
else if (guard.status === 'suspended' || guard.mode === 'suspended') suspended++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue