From: Stefan Lay Date: Tue, 6 Jul 2010 15:57:17 +0000 (+0200) Subject: Fix comparison of nanoseconds X-Git-Tag: v0.9.1~183 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=311da9b211dac8b96dd9b02a68b0a08846b30216;p=jgit.git 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 --- 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 afa6bef05b..3a6941a6df 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; }