From 8256a3143a437490530fb0ecc06fcbdfa6740167 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Thu, 25 Oct 2007 21:31:43 +0000 Subject: [PATCH] added an error margin. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5462 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/tasks/Fingerprinter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/tasks/Fingerprinter.java b/core/src/main/java/hudson/tasks/Fingerprinter.java index a0e39740ae..21ad016faf 100644 --- a/core/src/main/java/hudson/tasks/Fingerprinter.java +++ b/core/src/main/java/hudson/tasks/Fingerprinter.java @@ -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()));