Fixed issue #156 and #166

This commit is contained in:
Jonas Bonér 2010-05-25 13:26:10 +02:00
parent 83884eb475
commit 087e4212d4
2 changed files with 4 additions and 5 deletions

View file

@ -36,7 +36,7 @@ public class PersistentSimpleService {
public String count() {
if (storage == null) storage = CassandraStorage.newMap();
if (!hasStartedTicking) {
storage.put(KEY.getBytes(), ByteBuffer.allocate(2).putInt(0).array());
storage.put(KEY.getBytes(), ByteBuffer.allocate(4).putInt(0).array());
hasStartedTicking = true;
return "Tick: 0\n";
} else {