diff src/main/java/app/bbs/NetworkJungleBulletinBoard.java @ 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 202ea963ec20
children eef85b5faa15
line wrap: on
line diff
--- 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);