diff options
author | Johan Sørensen <johan@johansorensen.com> | 2008-04-19 00:40:09 +0200 |
---|---|---|
committer | Johan Sørensen <johan@johansorensen.com> | 2008-04-19 00:40:09 +0200 |
commit | 7d56991920c9e56a6991f41324b1d73835f3eb0f (patch) | |
tree | 5b6a299bfadd02a73a05100c04fda33c3a96b81d /script/git-daemon | |
parent | 05e3db0b6b430b2c825a2653bc598ad5e212b8f2 (diff) | |
download | gitorious-mainline-outdated-7d56991920c9e56a6991f41324b1d73835f3eb0f.zip gitorious-mainline-outdated-7d56991920c9e56a6991f41324b1d73835f3eb0f.tar.gz gitorious-mainline-outdated-7d56991920c9e56a6991f41324b1d73835f3eb0f.tar.bz2 |
Log how long it takes to defer a request to git-upload-pack
Diffstat (limited to 'script/git-daemon')
-rwxr-xr-x | script/git-daemon | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/script/git-daemon b/script/git-daemon index c4d3ffc..0064342 100755 --- a/script/git-daemon +++ b/script/git-daemon @@ -61,6 +61,7 @@ module Git line = session.recv(1000) if line =~ SERVICE_REGEXP + start_time = Time.now code = $1 service = $2 base_path = $3 @@ -110,6 +111,7 @@ module Git else log(pid, "Cannot find repository: #{path}") end + log(Process.pid, "Deferred in #{'%0.5f' % (Time.now - start_time)}s") exec(cmd) # FIXME; we don't ever get here since we exec(), so reaped count may be incorrect |