[Reconnoiter-devel] [reconnoiter commit] Reconnoiter branch, master, updated. 659d7f741d58716e2ca937d476b1d449ec825f88

git at labs.omniti.com git at labs.omniti.com
Thu Apr 14 13:30:10 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Reconnoiter".

The branch, master has been updated
       via  659d7f741d58716e2ca937d476b1d449ec825f88 (commit)
      from  51743db32ab73c0b4a3ec527346d4824d156c2ee (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 659d7f741d58716e2ca937d476b1d449ec825f88
Author: Theo Schlossnagle <jesus at omniti.com>
Date:   Thu Apr 14 13:29:46 2011 -0400

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

diff --git a/src/modules/httptrap.c b/src/modules/httptrap.c
index 37937ce..e89451b 100644
--- a/src/modules/httptrap.c
+++ b/src/modules/httptrap.c
@@ -263,29 +263,29 @@ json_parse_descent(noit_check_t *check, noit_boolean immediate,
       break;
 
     case json_type_null: {
-        if(!key || !*key) return;
+        if(!key || !*key) break;
         break;
       }
       break;
     case json_type_boolean: {
-        if(!key || !*key) return;
+        if(!key || !*key) break;
         int32_t value = json_object_get_boolean(o) ? 1 : 0;
         setstat(key, METRIC_INT32, &value);
       }
       break;
     case json_type_double: {
-        if(!key || !*key) return;
+        if(!key || !*key) break;
         double value = json_object_get_double(o);
         setstat(key, METRIC_DOUBLE, &value);
       }
       break;
     case json_type_int: {
-      if(!key || !*key) return;
+      if(!key || !*key) break;
       int32_t value = json_object_get_int(o);
       setstat(key, METRIC_INT32, &value);
     }
     case json_type_string: {
-        if(!key || !*key) return;
+        if(!key || !*key) break;
         const char *val = json_object_get_string(o);
         setstat(key, METRIC_GUESS, (void *)val);
       }

-----------------------------------------------------------------------

Summary of changes:
 src/modules/httptrap.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
Reconnoiter


More information about the Reconnoiter-devel mailing list