From a502d96a860456ec5e8c96761db70f7cabb74751 Mon Sep 17 00:00:00 2001
From: Paul Martin <paul@paulsputer.com>
Date: Sat, 30 Apr 2016 04:19:14 -0400
Subject: [PATCH] Merge pull request #1073 from gitblit/1062-DocEditorUpdates

---
 src/main/java/com/gitblit/utils/MetricUtils.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/gitblit/utils/MetricUtils.java b/src/main/java/com/gitblit/utils/MetricUtils.java
index 26e4581..62427e6 100644
--- a/src/main/java/com/gitblit/utils/MetricUtils.java
+++ b/src/main/java/com/gitblit/utils/MetricUtils.java
@@ -39,9 +39,9 @@
 /**
  * Utility class for collecting metrics on a branch, tag, or other ref within
  * the repository.
- * 
+ *
  * @author James Moger
- * 
+ *
  */
 public class MetricUtils {
 
@@ -49,7 +49,7 @@
 
 	/**
 	 * Log an error message and exception.
-	 * 
+	 *
 	 * @param t
 	 * @param repository
 	 *            if repository is not null it MUST be the {0} parameter in the
@@ -74,12 +74,12 @@
 	 * Returns the list of metrics for the specified commit reference, branch,
 	 * or tag within the repository. If includeTotal is true, the total of all
 	 * the metrics will be included as the first element in the returned list.
-	 * 
+	 *
 	 * If the dateformat is unspecified an attempt is made to determine an
 	 * appropriate date format by determining the time difference between the
 	 * first commit on the branch and the most recent commit. This assumes that
 	 * the commits are linear.
-	 * 
+	 *
 	 * @param repository
 	 * @param objectId
 	 *            if null or empty, HEAD is assumed.
@@ -136,7 +136,7 @@
 
 				Iterable<RevCommit> revlog = revWalk;
 				for (RevCommit rev : revlog) {
-					Date d = JGitUtils.getCommitDate(rev);
+					Date d = JGitUtils.getAuthorDate(rev);
 					String p = df.format(d);
 					if (!metricMap.containsKey(p)) {
 						metricMap.put(p, new Metric(p));
@@ -172,7 +172,7 @@
 
 	/**
 	 * Returns a list of author metrics for the specified repository.
-	 * 
+	 *
 	 * @param repository
 	 * @param objectId
 	 *            if null or empty, HEAD is assumed.

--
Gitblit v1.9.1