diff --git a/Dashboard/Models/ServerHealthStatus.cs b/Dashboard/Models/ServerHealthStatus.cs index 4b4795c5..8094cd74 100644 --- a/Dashboard/Models/ServerHealthStatus.cs +++ b/Dashboard/Models/ServerHealthStatus.cs @@ -433,6 +433,8 @@ public HealthSeverity DeadlockSeverity get { if (DeadlocksSinceLastCheck > 0) return HealthSeverity.Critical; + if (_lastDeadlockMinutesAgo.HasValue && _lastDeadlockMinutesAgo.Value <= 10) return HealthSeverity.Critical; + if (_lastDeadlockMinutesAgo.HasValue && _lastDeadlockMinutesAgo.Value <= 60) return HealthSeverity.Warning; return HealthSeverity.Healthy; } } @@ -447,6 +449,7 @@ public int? LastDeadlockMinutesAgo _lastDeadlockMinutesAgo = value; OnPropertyChanged(); OnPropertyChanged(nameof(DeadlockDetailText)); + OnPropertyChanged(nameof(DeadlockSeverity)); } }