mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Small tests cleanup and fixed a bug in ReplicatingCluster.asReplica.lastModificationTime()
This commit is contained in:
@@ -138,8 +138,8 @@ public final class ReplicatingCluster implements Closeable {
|
||||
@Override
|
||||
public long lastModificationTime(byte remoteIdentifier) {
|
||||
long t = System.currentTimeMillis();
|
||||
for (int i = (int) chronicleChannelBitSet.nextSetBit(0); i > 0;
|
||||
i = (int) chronicleChannelBitSet.nextSetBit(i + 1)) {
|
||||
for (int i = (int) chronicleChannelBitSet.previousSetBit(chronicleChannels.length);
|
||||
i > 0; i = (int) chronicleChannelBitSet.previousSetBit(i - 1)) {
|
||||
t = min(t, chronicleChannels[i].lastModificationTime(remoteIdentifier));
|
||||
}
|
||||
return t;
|
||||
|
||||
Reference in New Issue
Block a user