Include time negotating in total time in UploadPack The total time in UploadPack counter was not considering the time spent negotating, often a crucial and lengthy part of any git operation. Include time negotating in the total time for UploadPack calculation to more accurately represent the actual total time spent in this operation. Change-Id: I88dee5b0ba01e0ac311cb11cb83a68ae1e8f2957
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackStatistics.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackStatistics.java index 64a1eb2..bc68daf 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackStatistics.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackStatistics.java
@@ -690,7 +690,8 @@ public long getOffloadedPackfilesSize() { * @return total time spent processing this pack. */ public long getTimeTotal() { - return statistics.timeCounting + statistics.timeSearchingForReuse + return statistics.timeNegotiating + statistics.timeCounting + + statistics.timeSearchingForReuse + statistics.timeSearchingForSizes + statistics.timeCompressing + statistics.timeWriting; }