Skip to content

Commit bccc486

Browse files
authored
halved notification check for autostop warning (#189)
1 parent 7ead36a commit bccc486

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/workspaceAction.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ export class WorkspaceAction {
8282
return false
8383
}
8484

85-
const hourMilli = 1000 * 60 * 60
86-
// return workspaces with a deadline that is in 1 hr or less
87-
return Math.abs(new Date().getTime() - new Date(workspace.latest_build.deadline).getTime()) <= hourMilli
85+
const halfHourMilli = 1000 * 60 * 30
86+
// return workspaces with a deadline that is in 30 min or less
87+
return Math.abs(new Date().getTime() - new Date(workspace.latest_build.deadline).getTime()) <= halfHourMilli
8888
}
8989

9090
filterWorkspacesImpendingDeletion(workspace: Workspace): workspace is WorkspaceWithDeletingAt {

0 commit comments

Comments
 (0)