Updated Branches:
  refs/heads/5.4-js-rewrite 1ace2156f -> 3b550cd18

TAP5-1964: In production mode, placeholder timestamp needs to be limited to 
one-second accuracy


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/3b550cd1
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/3b550cd1
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/3b550cd1

Branch: refs/heads/5.4-js-rewrite
Commit: 3b550cd189dec6f663dd753c724d64a8978d128c
Parents: 1ace215
Author: Howard M. Lewis Ship <[email protected]>
Authored: Fri Jun 29 15:19:47 2012 -0700
Committer: Howard M. Lewis Ship <[email protected]>
Committed: Fri Jun 29 15:19:47 2012 -0700

----------------------------------------------------------------------
 .../services/assets/ResourceChangeTrackerImpl.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/3b550cd1/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ResourceChangeTrackerImpl.java
----------------------------------------------------------------------
diff --git 
a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ResourceChangeTrackerImpl.java
 
b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ResourceChangeTrackerImpl.java
index 46cec88..55c6cfb 100644
--- 
a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ResourceChangeTrackerImpl.java
+++ 
b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ResourceChangeTrackerImpl.java
@@ -1,4 +1,4 @@
-// Copyright 2011 The Apache Software Foundation
+// Copyright 2011, 2012 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ public class ResourceChangeTrackerImpl extends 
InvalidationEventHubImpl implemen
      * all exposed assets include a URL with a version number, and each new 
deployment of the application should change
      * that version number.
      */
-    private final long fixedLastModifiedTime = System.currentTimeMillis();
+    private final long fixedLastModifiedTime = 
Math.round(System.currentTimeMillis() / 1000d) * 1000L;
 
     public ResourceChangeTrackerImpl(ClasspathURLConverter 
classpathURLConverter,
                                      @Symbol(SymbolConstants.PRODUCTION_MODE)

Reply via email to