Increase default auto-stop to 12h (#3631)

Resolves #3462.

And, clarify language to resolve #3509.
This commit is contained in:
Ammar Bandukwala
2022-08-22 17:24:15 -05:00
committed by GitHub
parent 8ca3fa9712
commit a07ca946c3
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ import (
"github.com/coder/coder/codersdk"
)
const workspaceDefaultTTL = 2 * time.Hour
const workspaceDefaultTTL = 12 * time.Hour
var (
ttlMin = time.Minute //nolint:revive // min here means 'minimum' not 'minutes'
@@ -54,7 +54,7 @@ export const Language = {
timezoneLabel: "Timezone",
ttlLabel: "Time until shutdown (hours)",
ttlCausesShutdownHelperText: "Your workspace will shut down",
ttlCausesShutdownAfterStart: "after start",
ttlCausesShutdownAfterStart: "after its next start",
ttlCausesNoShutdownHelperText: "Your workspace will not automatically shut down.",
formTitle: "Workspace schedule",
startSection: "Start",
+1 -1
View File
@@ -5,7 +5,7 @@ export interface AutoStop {
export const emptyTTL = 0
export const defaultTTL = 8
export const defaultTTL = 12
const msToHours = (ms: number) => Math.round(ms / (1000 * 60 * 60))