diff options
author | Stefan Lay <stefan.lay@sap.com> | 2010-07-06 17:57:17 +0200 |
---|---|---|
committer | Stefan Lay <stefan.lay@sap.com> | 2010-07-06 17:57:17 +0200 |
commit | 311da9b211dac8b96dd9b02a68b0a08846b30216 (patch) | |
tree | c3e94a32a10eb47ad6fcda6146f7474ac5c1ab44 | |
parent | 629fd0d594d242eab26161b0dac34f7576fd4d3d (diff) | |
download | jgit-311da9b211dac8b96dd9b02a68b0a08846b30216.tar.gz jgit-311da9b211dac8b96dd9b02a68b0a08846b30216.zip |
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 <stefan.lay@sap.com>
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |