added an error margin.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5462 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-10-25 21:31:43 +00:00
1 parent efc953c7cd
commit 8256a3143a
1 file changed
+2 -1
@@ -146,7 +146,8 @@ public class Fingerprinter extends Publisher implements Serializable {
// consider the file to be produced by this build only if the timestamp
// is newer than when the build has started.
boolean produced = buildTimestamp <= file.lastModified();
// 2000ms is an error margin since since VFAT only retains timestamp at 2sec precision
boolean produced = buildTimestamp <= file.lastModified()+2000;
try {
results.add(new Record(produced,f,file.getName(),new FilePath(file).digest()));