Default autoscaling maximum to three lobbies

This commit is contained in:
2026-10-07 15:53:10 -04:00
parent 13f818963b
commit 76aa377ba5
+1 -1
View File
@@ -12,7 +12,7 @@
let snapshot = $state<ScalingReport | null>(null); let snapshot = $state<ScalingReport | null>(null);
const report = $derived(snapshot ?? data.autoscaling); const report = $derived(snapshot ?? data.autoscaling);
const canOperate = $derived(page.data.user?.role === 'admin' || page.data.user?.role === 'operator'); const canOperate = $derived(page.data.user?.role === 'admin' || page.data.user?.role === 'operator');
const defaults = (): ScalingSettings => ({ game: 't5', mapSlug: 'theater', mode: 'off', minimum: 1, maximum: 4, spares: 1, emptyMinutes: 20 }); const defaults = (): ScalingSettings => ({ game: 't5', mapSlug: 'theater', mode: 'off', minimum: 1, maximum: 3, spares: 1, emptyMinutes: 20 });
let settings = $state<ScalingSettings>(defaults()); let settings = $state<ScalingSettings>(defaults());
let editing = $state<ScalingPolicy | null>(null); let editing = $state<ScalingPolicy | null>(null);
let editorOpen = $state(false); let editorOpen = $state(false);