Skip to content

Commit dcd57cf

Browse files
committed
cli/ssh: notify relative time instead
1 parent 6f2bef5 commit dcd57cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cli/ssh.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,11 @@ func notifyCondition(ctx context.Context, client *codersdk.Client, workspaceID u
294294
ttl := deadline.Sub(now)
295295
var title, body string
296296
if ttl > time.Minute {
297-
title = fmt.Sprintf(`Workspace %s stopping in %.0f mins`, ws.Name, ttl.Minutes())
297+
title = fmt.Sprintf(`Workspace %s stopping soon`, ws.Name)
298298
body = fmt.Sprintf(
299-
`Your Coder workspace %s is scheduled to stop at %s.`,
299+
`Your Coder workspace %s is scheduled to stop in %s`,
300300
ws.Name,
301-
deadline.Format(time.Kitchen),
301+
deadline.Sub(now),
302302
)
303303
} else {
304304
title = fmt.Sprintf("Workspace %s stopping!", ws.Name)

0 commit comments

Comments
 (0)