Mercurial > hg > Members > nobuyasu > jungle-network
comparison src/main/java/app/bbs/BullentInBoardJungleManager.java @ 131:aa98fc3ec85f
Modified BulletinBoardJungleManager calculatePosition method
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 11 Jan 2014 09:17:07 +0900 |
parents | 292538b1de32 |
children | 0b3375dee51d |
comparison
equal
deleted
inserted
replaced
130:652a6dff6288 | 131:aa98fc3ec85f |
---|---|
72 for(Node n : node.getChildren()) { | 72 for(Node n : node.getChildren()) { |
73 ByteBuffer timestamp = n.getAttributes().get("timestamp"); | 73 ByteBuffer timestamp = n.getAttributes().get("timestamp"); |
74 if(timestamp == null) { | 74 if(timestamp == null) { |
75 return count; | 75 return count; |
76 } | 76 } |
77 Long t = timestamp.getLong(); | |
78 if(t == null) { | |
79 return count; | |
80 } | |
77 childTimeStamp = timestamp.getLong(); | 81 childTimeStamp = timestamp.getLong(); |
78 if (newNodeTimeStamp < childTimeStamp) { | 82 if (newNodeTimeStamp < childTimeStamp) { |
79 break; | 83 break; |
80 } | 84 } |
81 count++; | 85 count++; |