Skip to content

Commit

Permalink
Make uint64 decoding not suffer from rolling issues.
Browse files Browse the repository at this point in the history
This still casts the values to "Double" so IEEE floating point
issues still remain.  This only solves the issue of large numbers
showing as negative numbers when decoded.
  • Loading branch information
postwait committed Mar 24, 2016
1 parent edad39d commit 5896988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java/src/com/omniti/reconnoiter/event/NoitBundlev2.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ public NoitBundlev2(String[] parts) throws Exception {
break;
case 'L':
if(metric.hasValueUI64()) {
val = (double)metric.getValueUI64();
v_str = Double.toString(metric.getValueUI64());
val = (double)Double.valueOf(Long.toUnsignedString(metric.getValueUI64()));
v_str = val.toString();
}
typestring = ts_L;
break;
Expand Down

0 comments on commit 5896988

Please sign in to comment.