]> source.dussan.org Git - jgit.git/commitdiff
Fix comparison of nanoseconds 67/1067/1
authorStefan Lay <stefan.lay@sap.com>
Tue, 6 Jul 2010 15:57:17 +0000 (17:57 +0200)
committerStefan Lay <stefan.lay@sap.com>
Tue, 6 Jul 2010 15:57:17 +0000 (17:57 +0200)
NB.decodeInt32(info, base + 4) already returns nanoseconds.
Therefore it must not be divided by 1000000.

Change-Id: Ie8f5c4a03f984d98935dccedc2b1ba4457094899
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java

index afa6bef05bedf48253909894ba28575aed80abe4..3a6941a6df3fbe98ad7ce0fdc48f3f1a1dbb34fa 100644 (file)
@@ -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;
        }