Skip to content

Commit 97a5b02

Browse files
committed
Reduce recently modified file threshold to 1.5 hours in FilesCollector
- change three hours to 1.5 hours
1 parent c9199ae commit 97a5b02

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/editor/src/utils/files-collector.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class FilesCollector {
125125
const recently_modified: Array<{ path: string; mtime: number }> = []
126126
const older_files: Array<{ path: string; timestamp: number }> = []
127127
const now = Date.now()
128-
const THREE_HOURS = 3 * 60 * 60 * 1000
128+
const ONE_AND_HALF_HOURS = 1.5 * 60 * 60 * 1000
129129

130130
for (const file_path of params.files) {
131131
try {
@@ -137,7 +137,7 @@ export class FilesCollector {
137137
const selection_timestamp =
138138
this.workspace_provider.get_selection_timestamp(file_path) ?? now
139139

140-
if (now - mtime < THREE_HOURS) {
140+
if (now - mtime < ONE_AND_HALF_HOURS) {
141141
recently_modified.push({ path: file_path, mtime })
142142
} else {
143143
older_files.push({ path: file_path, timestamp: selection_timestamp })

0 commit comments

Comments
 (0)