Changeset 659d7f741d58716e2ca937d476b1d449ec825f88

Show
Ignore:
Timestamp:
04/14/11 17:29:46 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1302802186 -0400
git-parent:

[51743db32ab73c0b4a3ec527346d4824d156c2ee]

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

this function returns the number of metrics added,
so break and allow that.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/httptrap.c

    rb98abc5 r659d7f7  
    264264 
    265265    case json_type_null: { 
    266         if(!key || !*key) return
     266        if(!key || !*key) break
    267267        break; 
    268268      } 
    269269      break; 
    270270    case json_type_boolean: { 
    271         if(!key || !*key) return
     271        if(!key || !*key) break
    272272        int32_t value = json_object_get_boolean(o) ? 1 : 0; 
    273273        setstat(key, METRIC_INT32, &value); 
     
    275275      break; 
    276276    case json_type_double: { 
    277         if(!key || !*key) return
     277        if(!key || !*key) break
    278278        double value = json_object_get_double(o); 
    279279        setstat(key, METRIC_DOUBLE, &value); 
     
    281281      break; 
    282282    case json_type_int: { 
    283       if(!key || !*key) return
     283      if(!key || !*key) break
    284284      int32_t value = json_object_get_int(o); 
    285285      setstat(key, METRIC_INT32, &value); 
    286286    } 
    287287    case json_type_string: { 
    288         if(!key || !*key) return
     288        if(!key || !*key) break
    289289        const char *val = json_object_get_string(o); 
    290290        setstat(key, METRIC_GUESS, (void *)val);