Changeset 1941
- Timestamp:
- 08/17/2007 11:35:26 PM (13 months ago)
- Location:
- branches/lighttpd-1.4.x
- Files:
-
- 2 modified
-
NEWS (modified) (1 diff)
-
src/mod_status.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/lighttpd-1.4.x/NEWS
r1940 r1941 16 16 * fixed invalid "304 Not Modified" on broken timestamps 17 17 * fixed endless loop on shrinked files with sendfile() on BSD (#1289) 18 * fixed counter overrun in ?auto in mod_status (#909) 18 19 * removed config-check if passwd files exist (#1188) 19 20 -
branches/lighttpd-1.4.x/src/mod_status.c
r1864 r1941 560 560 double avg; 561 561 time_t ts; 562 char buf[32]; 562 563 563 564 b = chunkqueue_get_append_buffer(con->write_queue); … … 566 567 BUFFER_APPEND_STRING_CONST(b, "Total Accesses: "); 567 568 avg = p->abs_requests; 568 buffer_append_long(b, avg); 569 snprintf(buf, sizeof(buf) - 1, "%.0f", avg); 570 buffer_append_string(b, buf); 569 571 BUFFER_APPEND_STRING_CONST(b, "\n"); 570 572 … … 572 574 BUFFER_APPEND_STRING_CONST(b, "Total kBytes: "); 573 575 avg = p->abs_traffic_out / 1024; 574 buffer_append_long(b, avg); 576 snprintf(buf, sizeof(buf) - 1, "%.0f", avg); 577 buffer_append_string(b, buf); 575 578 BUFFER_APPEND_STRING_CONST(b, "\n"); 576 579

