diff src/http/modules/ngx_http_log_handler.c @ 33:b2e039840718

nginx-0.0.1-2002-12-19-20:49:51 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 19 Dec 2002 17:49:51 +0000
parents d45effe5854c
children 4222c496acb3
line wrap: on
line diff
--- a/src/http/modules/ngx_http_log_handler.c
+++ b/src/http/modules/ngx_http_log_handler.c
@@ -22,11 +22,11 @@ int ngx_http_log_handler(ngx_http_reques
 
     ngx_log_debug(r->connection->log, "log handler");
 
-    /* %a, 20:%c, 22:%d, 3:%s, 20:%b, 5*" ", "2/1: "\r\n" */
+    /* 10:%con, 22:%date, 2:%"%r", 3:%status, 20:%bytes, 5*" ", 2/1: "\r\n" */
 #if (WIN32)
-    len = 2 + 20 + 22 + 3 + 20 + 5 + + 2;
+    len = 10 + 22 + 2 + 3 + 20 + 5 + 2;
 #else
-    len = 2 + 20 + 22 + 3 + 20 + 5 + + 1;
+    len = 10 + 22 + 2 + 3 + 20 + 5 + 1;
 #endif
 
     len += r->connection->addr_text.len;
@@ -67,7 +67,7 @@ int ngx_http_log_handler(ngx_http_reques
 
     *p++ = ' ';
 
-    p += ngx_snprintf(p, 21, QD_FMT, r->connection->sent);
+    p += ngx_snprintf(p, 21, OFF_FMT, r->connection->sent);
 
 #if (WIN32)
     *p++ = CR; *p++ = LF;