From 3d1f95ef6bca5619e2f9fb44ba33f7ac59337a35 Mon Sep 17 00:00:00 2001 From: Oliver Wipfli Date: Wed, 16 Mar 2022 09:42:55 +0100 Subject: [PATCH] Check disk space and memory only with OSM input file --- .../src/main/java/com/onthegomap/planetiler/Planetiler.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/planetiler-core/src/main/java/com/onthegomap/planetiler/Planetiler.java b/planetiler-core/src/main/java/com/onthegomap/planetiler/Planetiler.java index 4c67a4d958..be94eb902f 100644 --- a/planetiler-core/src/main/java/com/onthegomap/planetiler/Planetiler.java +++ b/planetiler-core/src/main/java/com/onthegomap/planetiler/Planetiler.java @@ -495,10 +495,9 @@ public void run() throws Exception { return; // exit only if just fetching wikidata or downloading sources } - checkDiskSpace(); - checkMemory(); - if (osmInputFile != null) { + checkDiskSpace(); + checkMemory(); config.bounds().setFallbackProvider(osmInputFile); }