Skip to content

Commit

Permalink
more misparsed unsigned values
Browse files Browse the repository at this point in the history
  • Loading branch information
eevans committed Apr 16, 2013
1 parent 1283883 commit 8b8be14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/rackspace/flewton/Recordv5.java
Expand Up @@ -52,8 +52,8 @@ public Recordv5(ChannelBuffer buffer) throws CorruptDatagram {
super(buffer);

ChannelBuffer header = getHeader(buffer);
int count = header.readShort();
long sys_uptime = header.readInt();
int count = header.readUnsignedShort();
long sys_uptime = header.readUnsignedInt();
// unix_secs + unix_nsecs (converted to millis)
long millisSinceEpoch = (readLong(4, header) * 1000) + (readLong(4, header) / 1000000);

Expand Down

0 comments on commit 8b8be14

Please sign in to comment.