svn commit: r929849 - in /ofbiz/trunk/framework/webtools/webapp/webtools: WEB-INF/actions/cache/FindUtilCacheElements.groovy cache/findUtilCacheElements.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r929849 - in /ofbiz/trunk/framework/webtools/webapp/webtools: WEB-INF/actions/cache/FindUtilCacheElements.groovy cache/findUtilCacheElements.ftl

doogie-3
Author: doogie
Date: Thu Apr  1 05:42:11 2010
New Revision: 929849

URL: http://svn.apache.org/viewvc?rev=929849&view=rev
Log:
Last commit fixed the compile error, and allowed the test cases to pass.
However, there are no tests against the webtools webapp, and this change
finishes the fix.

Modified:
    ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/cache/FindUtilCacheElements.groovy
    ofbiz/trunk/framework/webtools/webapp/webtools/cache/findUtilCacheElements.ftl

Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/cache/FindUtilCacheElements.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/cache/FindUtilCacheElements.groovy?rev=929849&r1=929848&r2=929849&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/cache/FindUtilCacheElements.groovy (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/cache/FindUtilCacheElements.groovy Thu Apr  1 05:42:11 2010
@@ -36,7 +36,7 @@ if (cacheName) {
         cacheElementsList = utilCache.getLineInfos()
         cacheElementsList.each {
             if (it.expireTimeMillis != null) {
-                it.expireTimeMillis = it.expireTimeMillis / 1000 .toString();
+                it.expireTimeMillis = (it.expireTimeMillis / 1000) .toString();
             }
             totalSize += it.lineSize;
             it.lineSize = UtilFormatOut.formatQuantity(it.lineSize);

Modified: ofbiz/trunk/framework/webtools/webapp/webtools/cache/findUtilCacheElements.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/cache/findUtilCacheElements.ftl?rev=929849&r1=929848&r2=929849&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/cache/findUtilCacheElements.ftl (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/cache/findUtilCacheElements.ftl Thu Apr  1 05:42:11 2010
@@ -53,7 +53,7 @@ under the License.
                 <#list cacheElementsList as cacheElement>
                     <tr<#if alt_row> class="alternate-row"</#if>>
                         <td>${cacheElement.elementKey?if_exists}</td>
-                        <td nowrap="nowrap">${cacheElement.expireTime?if_exists}</td>
+                        <td nowrap="nowrap">${cacheElement.expireTimeMillis?if_exists}</td>
                         <td>${cacheElement.lineSize?if_exists}</td>
                         <td class="button-col">
                             <#if hasUtilCacheEdit>