mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
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:
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()));
|
||||
|
||||
Reference in new issue
Block a user