Changeset bc455585775ab50feb26ffc29730ad74bb221bce

Show
Ignore:
Timestamp:
09/23/11 23:35:49 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1316820949 -0400
git-parent:

[4299e397f43c438472a1933713f8d35e706c97cb]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1316820949 -0400
Message:

There are good days and bad days in life... Then, there are days
like these. This is a clear demonstration that someone needs to
spend more time on the test suite.

This fix decodes string metrics and correctly handles null values.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/java/com/omniti/reconnoiter/event/NoitBundlev2.java

    ra423b8a rbc45558  
    7474          case 'L': v_str = Double.toString(metric.getValueUI64()); break; 
    7575          case 'n': v_str = Double.toString(metric.getValueDbl()); break; 
     76          case 's': v_str = metric.getValueStr(); 
    7677          default: 
    7778            break; 
    7879        } 
    79         if(v_str == null) continue
     80        if(v_str == null) v_str = "[[null]]"
    8081        items.addLast(new NoitMetric(new java.lang.String[] 
    8182                      { "M", noit, timestamp, parts[3], metric.getName(),