Make config actually affect the (partial) run
This commit is contained in:
parent
baa41c5ff7
commit
30c30881d6
|
@ -34,7 +34,11 @@ public class Main {
|
||||||
// Go go gadget import service!
|
// Go go gadget import service!
|
||||||
try {
|
try {
|
||||||
System.out.println(System.currentTimeMillis()/1000L + ": Begin import of data ...");
|
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!");
|
System.out.println(System.currentTimeMillis()/1000L + ": Import of data done!");
|
||||||
} catch (EOFException | PcapNativeException | TimeoutException | NotOpenException e) {
|
} catch (EOFException | PcapNativeException | TimeoutException | NotOpenException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
Loading…
Reference in New Issue