Updated Branches:
  refs/heads/5.3 32cf49770 -> 7e3d63d81

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/7e3d63d8
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/7e3d63d8
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/7e3d63d8

Branch: refs/heads/5.3
Commit: 7e3d63d81f2c9db233e6125f09b6488079c21eff
Parents: 32cf497
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:20:50 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/7e3d63d8/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