fix delta time calculation in PerformanceSearch_p for the 1. entry

(INITIALIZATION displayed absolute date, set delta to 0 for 1. entry)
pull/114/head
reger 8 years ago
parent 13c5c09518
commit 0aa0dd0b5b

@ -51,7 +51,7 @@ public class PerformanceSearch_p {
prop.put("table_" + c + "_event", search.processName.name()); prop.put("table_" + c + "_event", search.processName.name());
prop.put("table_" + c + "_comment", search.comment); prop.put("table_" + c + "_comment", search.comment);
prop.putNum("table_" + c + "_count", search.resultCount); prop.putNum("table_" + c + "_count", search.resultCount);
prop.putNum("table_" + c + "_delta", event.getTime() - lastt); prop.putNum("table_" + c + "_delta", (c == 0 ? lastt : event.getTime() - lastt));
prop.put("table_" + c + "_time", event.getFormattedDate()); prop.put("table_" + c + "_time", event.getFormattedDate());
prop.putNum("table_" + c + "_duration", search.duration); prop.putNum("table_" + c + "_duration", search.duration);
c++; c++;

Loading…
Cancel
Save