From 311da9b211dac8b96dd9b02a68b0a08846b30216 Mon Sep 17 00:00:00 2001 From: Stefan Lay Date: Tue, 6 Jul 2010 17:57:17 +0200 Subject: [PATCH] Fix comparison of nanoseconds NB.decodeInt32(info, base + 4) already returns nanoseconds. Therefore it must not be divided by 1000000. Change-Id: Ie8f5c4a03f984d98935dccedc2b1ba4457094899 Signed-off-by: Stefan Lay --- .../src/org/eclipse/jgit/dircache/DirCacheEntry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java index afa6bef05..3a6941a6d 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java @@ -292,7 +292,7 @@ public class DirCacheEntry { if (smudge_s < mtime) return true; if (smudge_s == mtime) - return smudge_ns <= NB.decodeInt32(info, base + 4) / 1000000; + return smudge_ns <= NB.decodeInt32(info, base + 4); return false; }