File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/main/java/org/radarcns Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -122,19 +122,12 @@ private void processTopic(Path topicPath) throws IOException {
122
122
123
123
String topicName = topicPath .getName ();
124
124
125
- long t1 = System .currentTimeMillis ();
126
-
127
125
try (FileCache cache = new FileCache (100 )) {
128
126
while (files .hasNext ()) {
129
127
LocatedFileStatus locatedFileStatus = files .next ();
130
128
131
129
if (locatedFileStatus .isFile ()) {
132
130
this .processFile (locatedFileStatus .getPath (), topicName , cache );
133
- if (processedFileCount == 10 ) {
134
- double diff = (System .currentTimeMillis () - t1 ) / 1000d ;
135
- logger .info ("Processed 10 files in {} seconds" , diff );
136
- System .exit (0 );
137
- }
138
131
}
139
132
}
140
133
}
@@ -238,4 +231,4 @@ private void readSeenOffsets() {
238
231
logger .info ("Offsets file does not exist yet, will be created." );
239
232
}
240
233
}
241
- }
234
+ }
You can’t perform that action at this time.
0 commit comments