From 30c30881d608af7ee8252ed64517055a965ea34e Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Thu, 8 Dec 2016 10:43:48 +0100 Subject: [PATCH] Make config actually affect the (partial) run --- src/main/java/de/hsh/inform/orientdb_project/Main.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/hsh/inform/orientdb_project/Main.java b/src/main/java/de/hsh/inform/orientdb_project/Main.java index 142218f..72bca5a 100644 --- a/src/main/java/de/hsh/inform/orientdb_project/Main.java +++ b/src/main/java/de/hsh/inform/orientdb_project/Main.java @@ -34,7 +34,11 @@ public class Main { // Go go gadget import service! try { System.out.println(System.currentTimeMillis()/1000L + ": Begin import of data ..."); - importService.partialRun(5000); + if(config.limitedImport) { + importService.partialRun(config.importLimit); + } else { + importService.run(); + } System.out.println(System.currentTimeMillis()/1000L + ": Import of data done!"); } catch (EOFException | PcapNativeException | TimeoutException | NotOpenException e) { e.printStackTrace();