Skip to content

Commit 0a26738

Browse files
Update writer.go
1 parent 5edca72 commit 0a26738

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/writer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func writeBatchFiles(
288288
allV2ray []string, allClash []string, allClashNames []string,
289289
allSNIV2ray []string, allSNIClash []string, allSNIClashNames []string,
290290
) {
291-
const batchSize = 1000
291+
const batchSize = 500
292292

293293
rng := rand.New(rand.NewSource(time.Now().UnixNano()))
294294

@@ -1867,11 +1867,11 @@ func countBatchFiles(dir string) int {
18671867
}
18681868

18691869
func min500(batchIdx, total int) int {
1870-
start := (batchIdx - 1) * 1000
1870+
start := (batchIdx - 1) * 500
18711871
if start >= total {
18721872
return 0
18731873
}
1874-
end := start + 1000
1874+
end := start + 500
18751875
if end > total {
18761876
return total - start
18771877
}

0 commit comments

Comments
 (0)