Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: cli/ssh: read autostop deadline from latestbuild.Deadline instea…
…d of from workspace TTL
  • Loading branch information
johnstcn committed May 27, 2022
commit f764e617e08934d5428a19e3e68432ee9570b097
2 changes: 1 addition & 1 deletion cli/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func notifyCondition(ctx context.Context, client *codersdk.Client, workspaceID u
return time.Time{}, nil
}

deadline = ws.LatestBuild.UpdatedAt.Add(*ws.TTL)
deadline = ws.LatestBuild.Deadline
callback = func() {
ttl := deadline.Sub(now)
var title, body string
Expand Down