From 0aa0dd0b5b9fd110f345c874ee03123929f39edc Mon Sep 17 00:00:00 2001 From: reger Date: Mon, 27 Feb 2017 01:04:31 +0100 Subject: [PATCH] fix delta time calculation in PerformanceSearch_p for the 1. entry (INITIALIZATION displayed absolute date, set delta to 0 for 1. entry) --- htroot/PerformanceSearch_p.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htroot/PerformanceSearch_p.java b/htroot/PerformanceSearch_p.java index d53c596a0..35230934f 100644 --- a/htroot/PerformanceSearch_p.java +++ b/htroot/PerformanceSearch_p.java @@ -51,7 +51,7 @@ public class PerformanceSearch_p { prop.put("table_" + c + "_event", search.processName.name()); prop.put("table_" + c + "_comment", search.comment); 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.putNum("table_" + c + "_duration", search.duration); c++;