diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2025-05-07 06:56:09 +0000 |
---|---|---|
committer | Gerrit Code Review <support@gerrithub.io> | 2025-05-07 06:56:09 +0000 |
commit | 8a07b54e8878f04d6d11bf48b12f8c7acc73154c (patch) | |
tree | d2ddea070fee4a1df66438ec31ad0e1651abceaa | |
parent | 4f98b2aab3d6176f901cc3586861df4e8e594385 (diff) | |
parent | 32e0e27bec4f2aec62ca9e049600419fef1031f8 (diff) | |
download | jgit-8a07b54e8878f04d6d11bf48b12f8c7acc73154c.tar.gz jgit-8a07b54e8878f04d6d11bf48b12f8c7acc73154c.zip |
Merge "PlotRefComparator: fix #timeof"
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotWalk.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotWalk.java b/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotWalk.java index 39e8fd8634..c8c454a228 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotWalk.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotWalk.java @@ -169,8 +169,9 @@ public class PlotWalk extends RevWalk { } long timeof(RevObject o) { - if (o instanceof RevCommit) - return ((RevCommit) o).getCommitTime(); + if (o instanceof RevCommit) { + return ((RevCommit) o).getCommitTime() * 1000L; + } if (o instanceof RevTag) { RevTag tag = (RevTag) o; try { |