# HG changeset patch # User Nobuyasu Oshiro # Date 1390876247 -32400 # Node ID 06cddf529325a0b045ebb76480bf45e6a826fb3a # Parent 7d248be1d3e4009abac35a3b8b532429974658ad Modified lates renew time diff -r 7d248be1d3e4 -r 06cddf529325 src/main/java/app/bbs/BulletinBoardJungleManager.java --- 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 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); diff -r 7d248be1d3e4 -r 06cddf529325 src/main/java/app/bbs/NetworkJungleBulletinBoard.java --- 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 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);