lgtm
This commit is contained in:
parent
a08b5d2ae0
commit
b98f0e3904
38 changed files with 3732 additions and 483 deletions
|
|
@ -202,6 +202,13 @@ public class App {
|
|||
int n = completed.get();
|
||||
System.err.printf("\r [%,d/%,d] %.1f/s | %.1fh | fail %d%n",
|
||||
n, total, n / Math.max(elapsedH * 3600, 1), elapsedH, failed.get());
|
||||
|
||||
int failures = failed.get();
|
||||
if (failures > 0) {
|
||||
throw new IllegalStateException(String.format(
|
||||
"%s travel-time generation failed for %,d of %,d origins; outputs are incomplete",
|
||||
mode, failures, total));
|
||||
}
|
||||
}
|
||||
|
||||
/** Compute and write travel times for a single origin, with retry on failure. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue