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>
This commit is contained in:
parent
629fd0d594
commit
311da9b211
|
@ -292,7 +292,7 @@ final boolean mightBeRacilyClean(final int smudge_s, final int smudge_ns) {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue