[exo-jcr-commits] exo-jcr SVN: r1464 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Jan 18 09:24:35 EST 2010
Author: areshetnyak
Date: 2010-01-18 09:24:35 -0500 (Mon, 18 Jan 2010)
New Revision: 1464
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/LockData.java
Log:
EXOJCR-411 : The calculation TimeToDeath in LockData was fixed.
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/LockData.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/LockData.java 2010-01-18 13:53:38 UTC (rev 1463)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/LockData.java 2010-01-18 14:24:35 UTC (rev 1464)
@@ -101,7 +101,7 @@
this.owner = owner;
this.timeOut = timeOut;
this.live = true;
- this.birthday = System.currentTimeMillis() / 1000;
+ this.birthday = System.currentTimeMillis();
}
/**
@@ -166,7 +166,7 @@
*/
public long getTimeToDeath()
{
- return birthday + timeOut - System.currentTimeMillis() / 1000;
+ return birthday + timeOut - System.currentTimeMillis();
}
/*
More information about the exo-jcr-commits
mailing list