about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-06 07:37:13 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-06 07:37:13 +0000
commit009760bdb7ba08246b98f4befe856cbda2ce769a (patch)
tree2de368d02b81a85f361ef81f32bb5ea04b608fe0
parent41debb52b9d719dbb6f3ee7963de8913eff0c13d (diff)
downloadclogger-009760bdb7ba08246b98f4befe856cbda2ce769a.tar.gz
-rw-r--r--ext/clogger_ext/clogger.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/clogger_ext/clogger.c b/ext/clogger_ext/clogger.c
index cc08fac..ad5bbb9 100644
--- a/ext/clogger_ext/clogger.c
+++ b/ext/clogger_ext/clogger.c
@@ -824,6 +824,11 @@ static VALUE to_path(VALUE self)
         else
                 rv = stat(cpath, &sb);
 
+        /*
+         * calling this method implies the web server will bypass
+         * the each method where body_bytes_sent is calculated,
+         * so we stat and set that value here.
+         */
         c->body_bytes_sent = rv == 0 ? sb.st_size : 0;
         return path;
 }