changeset 149:06cddf529325

Modified lates renew time
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 28 Jan 2014 11:30:47 +0900
parents 7d248be1d3e4
children eef85b5faa15
files src/main/java/app/bbs/BulletinBoardJungleManager.java src/main/java/app/bbs/NetworkJungleBulletinBoard.java
diffstat 2 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/app/bbs/BulletinBoardJungleManager.java	Tue Jan 28 10:53:01 2014 +0900
+++ b/src/main/java/app/bbs/BulletinBoardJungleManager.java	Tue Jan 28 11:30:47 2014 +0900
@@ -1,7 +1,6 @@
 package app.bbs;
 
 import java.nio.ByteBuffer;
-import java.util.Date;
 import java.util.concurrent.atomic.AtomicInteger;
 
 
@@ -65,7 +64,7 @@
 		Either<Error, JungleTreeEditor> either = null;
 		JungleTree tree = jungle.getTreeByName(treeName);
 		
-		long timestamp = new Date().getTime();
+		long timestamp = System.currentTimeMillis();
 		ByteBuffer tBuffer = ByteBuffer.allocate(16);
 		DefaultNodePath root = new DefaultNodePath();
 		tBuffer.putLong(timestamp);
--- a/src/main/java/app/bbs/NetworkJungleBulletinBoard.java	Tue Jan 28 10:53:01 2014 +0900
+++ b/src/main/java/app/bbs/NetworkJungleBulletinBoard.java	Tue Jan 28 11:30:47 2014 +0900
@@ -3,7 +3,6 @@
 import java.io.File;
 import java.io.IOException;
 import java.nio.ByteBuffer;
-import java.util.Date;
 import java.util.concurrent.atomic.AtomicInteger;
 
 import alice.jungle.core.NetworkDefaultJungle;
@@ -165,7 +164,7 @@
 			throw new IllegalStateException();
 		}
 		editor = either.b();
-		final long timestamp = new Date().getTime();
+		final long timestamp = System.currentTimeMillis();
 		ByteBuffer tBuffer = ByteBuffer.allocate(16);
 		tBuffer.putLong(timestamp);
 		either = editor.putAttribute(root.add(0),"timestamp", tBuffer);
@@ -222,7 +221,7 @@
 		}
 		
 		Either<Error, JungleTreeEditor> either;
-		final long timestamp = new Date().getTime();
+		final long timestamp = System.currentTimeMillis();
 		final ByteBuffer tBuffer = ByteBuffer.allocate(16);
 		tBuffer.putLong(timestamp);
 		do{
@@ -271,7 +270,7 @@
 	public void editMessage(String _board,String _uuid,final String _author,final String _message,final String _editKey)
 	{
 		requestCounter.incrementAndGet();
-		final long timestamp = new Date().getTime(); 
+		final long timestamp = System.currentTimeMillis();
 		final ByteBuffer tBuffer = ByteBuffer.allocate(16);
 		tBuffer.putLong(timestamp);
 		JungleTree tree = jungle.getTreeByName(_board);