Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Jan 14, 2024
1 parent a403797 commit 1ac2f3d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public static void writeOutput(FeatureGroup features, WriteableTileArchive outpu
TileArchiveMetadata tileArchiveMetadata, Path layerStatsPath, PlanetilerConfig config, Stats stats) {
var timer = stats.startStage("archive");

int chunksToRead = Math.min(1, features.chunksToRead());
int readThreads = Math.clamp(config.featureReadThreads(), 1, chunksToRead);
int chunksToRead = Math.max(1, features.chunksToRead());
int readThreads = Math.min(config.featureReadThreads(), chunksToRead);
int threads = config.threads();
int processThreads = threads < 10 ? threads : threads - readThreads;
int tileWriteThreads = config.tileWriteThreads();
Expand Down

0 comments on commit 1ac2f3d

Please sign in to comment.