[pal-cvs 3235] [971] wrong operator..

svnno****@sourc***** svnno****@sourc*****
2008年 6月 10日 (火) 21:50:27 JST


Revision: 971
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=971
Author:   shinsuke
Date:     2008-06-10 21:50:27 +0900 (Tue, 10 Jun 2008)

Log Message:
-----------
wrong operator..

Modified Paths:
--------------
    pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/statistics/src/java/org/apache/jetspeed/audit/impl/AuditActivityImpl.java


-------------- next part --------------
Modified: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/statistics/src/java/org/apache/jetspeed/audit/impl/AuditActivityImpl.java
===================================================================
--- pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/statistics/src/java/org/apache/jetspeed/audit/impl/AuditActivityImpl.java	2008-06-10 12:46:23 UTC (rev 970)
+++ pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/statistics/src/java/org/apache/jetspeed/audit/impl/AuditActivityImpl.java	2008-06-10 12:50:27 UTC (rev 971)
@@ -156,7 +156,7 @@
                 PreparedStatement stm2 = con
                         .prepareStatement("DELETE FROM ADMIN_ACTIVITY WHERE TIME_STAMP < ?");
                 stm2.setTimestamp(1, new Timestamp(System.currentTimeMillis()
-                        + ((long) maxAge * 1000)));
+                        - ((long) maxAge * 1000)));
                 stm2.execute();
             }
         }
@@ -222,7 +222,7 @@
                             .prepareStatement("DELETE FROM USER_ACTIVITY WHERE TIME_STAMP < ?");
                     stm2.setTimestamp(1, new Timestamp(System
                             .currentTimeMillis()
-                            + ((long) maxAge * 1000)));
+                            - ((long) maxAge * 1000)));
                     stm2.execute();
                 }
             }


pal-cvs メーリングリストの案内