Changeset 4519
- Timestamp:
- 02/01/10 13:44:07 (6 months ago)
- Location:
- trunk/varnish-cache
- Files:
-
- 2 modified
-
bin/varnishd/cache_acceptor.c (modified) (3 diffs)
-
include/stat_field.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/varnish-cache/bin/varnishd/cache_acceptor.c
r4497 r4519 188 188 struct listen_sock *ls; 189 189 unsigned u; 190 double now, pace;190 double t0, now, pace; 191 191 192 192 THR_SetName("cache-acceptor"); … … 209 209 need_test = 1; 210 210 pace = 0; 211 t0 = TIM_real(); 211 212 while (1) { 212 213 #ifdef SO_SNDTIMEO_WORKS … … 245 246 i = poll(pfd, heritage.nsocks, 1000); 246 247 now = TIM_real(); 248 VSL_stats->uptime = (uint64_t)(now - t0); 247 249 u = 0; 248 250 VTAILQ_FOREACH(ls, &heritage.socks, list) { -
trunk/varnish-cache/include/stat_field.h
r4497 r4519 152 152 MAC_STAT(accept_fail, uint64_t, 0, 'a', "Accept failures") 153 153 MAC_STAT(client_drop_late, uint64_t, 0, 'a', "Connection dropped late") 154 MAC_STAT(uptime, uint64_t, 0, 'a', "Client uptime")
