feat: publish sanitized custom.97 source

This commit is contained in:
cneicy committed 2026-10-27 20:43:39 +08:00
1 parent 8e6ed0317b
commit 86c0276156
1022 files changed
+69903 -19207

No files matched your search

+5 -2
View File
@@ -20,7 +20,7 @@ type DetectionSchedule struct {
}
func NextDetectionInterval(lastValid, outcome string, current int) int {
if outcome != "normal" && outcome != "degraded" {
if outcome != "normal" && outcome != "degraded" && outcome != "incomplete" {
return 15
}
if lastValid == "" {
@@ -51,7 +51,10 @@ func ApplyDetectionScheduleResult(ctx context.Context, channelID int, kind, resu
return nil
}
state.IntervalMinutes = NextDetectionInterval(state.LastValid, outcome, state.IntervalMinutes)
if outcome == "normal" || outcome == "degraded" {
if kind == "ciallo" {
state.IntervalMinutes = 45
}
if outcome == "normal" || outcome == "degraded" || outcome == "incomplete" {
state.LastValid = outcome
}
state.LastFinishedAt, state.LastResultID = finishedAt, resultID