[Reconnoiter-devel] [reconnoiter commit] Reconnoiter branch, master, updated. 9c34eea8305e4339d255aaaef352640ccc879da8

git at labs.omniti.com git at labs.omniti.com
Tue May 22 14:25:28 EDT 2012


Pushed by: jesus
The branch, master has been updated
       via  9c34eea8305e4339d255aaaef352640ccc879da8 (commit)
       via  988968482de9e0750b6f91d3f95beeed888b1f27 (commit)
       via  56d4276d6e20608529b6e5b5f31c3aace830f958 (commit)
      from  c385b68fdd537ec15c1467e6c8541b32d3838bf6 (commit)

Summary of changes:
 src/modules-lua/noit/module/http.lua |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

Log:
commit 9c34eea8305e4339d255aaaef352640ccc879da8
Merge: c385b68 9889684
Author: Theo Schlossnagle <jesus at lethargy.org>
Date:   Tue May 22 11:25:12 2012 -0700

    Merge pull request #77 from Kami/dont_include_ttfirstbye_metric_if_firstbytetime_is_nil
    
    Dont include ttfirstbye metric if firstbytetime is nil


commit 988968482de9e0750b6f91d3f95beeed888b1f27
Author: Tomaz Muraus <tomaz at tomaz.me>
Date:   Tue May 22 10:48:37 2012 -0700

    Should be 2 spaces for a tab.

diff --git a/src/modules-lua/noit/module/http.lua b/src/modules-lua/noit/module/http.lua
index e3846f4..82b9aed 100644
--- a/src/modules-lua/noit/module/http.lua
+++ b/src/modules-lua/noit/module/http.lua
@@ -412,7 +412,7 @@ function initiate(module, check)
     elapsed(check, "tt_connect", starttime, connecttime)
 
     if firstbytetime ~= nil then
-        elapsed(check, "tt_firstbyte", starttime, firstbytetime)
+      elapsed(check, "tt_firstbyte", starttime, firstbytetime)
     end
 
     -- size

commit 56d4276d6e20608529b6e5b5f31c3aace830f958
Author: Tomaz Muraus <tomaz at tomaz.me>
Date:   Sun May 20 16:31:54 2012 -0700

    Only add tt_firstbyte metric if firstbytetime is not nil.

diff --git a/src/modules-lua/noit/module/http.lua b/src/modules-lua/noit/module/http.lua
index 014186f..e3846f4 100644
--- a/src/modules-lua/noit/module/http.lua
+++ b/src/modules-lua/noit/module/http.lua
@@ -410,7 +410,10 @@ function initiate(module, check)
     local seconds = elapsed(check, "duration", starttime, endtime)
     status = status .. ',rt=' .. seconds .. 's'
     elapsed(check, "tt_connect", starttime, connecttime)
-    elapsed(check, "tt_firstbyte", starttime, firstbytetime)
+
+    if firstbytetime ~= nil then
+        elapsed(check, "tt_firstbyte", starttime, firstbytetime)
+    end
 
     -- size
     status = status .. ',bytes=' .. client.content_bytes




hooks/post-receive
-- 
Reconnoiter


More information about the Reconnoiter-devel mailing list