-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes negative parse times are shown #1950
Comments
This is weird. There is a non trivial logic for container parsers to subtract the processing time of their children from the parent container parsing time, but those highlighted parsers above aren't container parsers. |
I processed twice the same E01 that @aberenguel observed the negative parse times, but couldn't not reproduce it. |
I managed to reproduce the issue processing a folder with 10 copies of test.zip. } finally {
depth--;
long diff = System.nanoTime() / 1000 - start;
Long subitemsTime = timeInDepth.remove(depth + 1);
if (subitemsTime == null)
subitemsTime = 0L;
time.addAndGet(diff - subitemsTime);
// DEBUG MESSAGE
if (diff < subitemsTime) {
System.err.println(">>>NEGATIVE\ndepth=" + depth + "\nName=" + evidence.getName() + "\nParser="
+ parserName + "\ntimeInDepth=" + timeInDepth + "\ndiff=" + diff + "\nsubitemsTime="
+ subitemsTime + "\n");
}
} |
Good catch! I just took a look at the code and maybe this actually is being caused by a duplicated variable name |
Sorry @tc-wleite, I just saw you sent the test samples. I was running a lot a tests related to #1958. I will test my suggestion when I return back to home. |
No problem! I already tested it here and it solved the negative parsing times issue (at least with the sample ZIP files I was using). |
I noticed this a few times, but didn't take a screenshot.
The screenshots below were taken by @aberenguel.
I will try to get more information and hopefully reproduce this situation.
The text was updated successfully, but these errors were encountered: