Browse Source

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>
stable-0.9
Stefan Lay 15 years ago
parent
commit
311da9b211
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java

2
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java vendored

@ -292,7 +292,7 @@ public class DirCacheEntry {
if (smudge_s < mtime) if (smudge_s < mtime)
return true; return true;
if (smudge_s == mtime) if (smudge_s == mtime)
return smudge_ns <= NB.decodeInt32(info, base + 4) / 1000000; return smudge_ns <= NB.decodeInt32(info, base + 4);
return false; return false;
} }

Loading…
Cancel
Save