~ubuntu-branches/ubuntu/lucid/nginx/lucid

« back to all changes in this revision

Viewing changes to src/http/modules/ngx_http_log_module.c

Tags: upstream-0.6.31
ImportĀ upstreamĀ versionĀ 0.6.31

Show diffs side-by-side

added added

removed removed

Lines of Context:
400
400
 
401
401
    tp = ngx_timeofday();
402
402
 
403
 
    ms = (tp->sec - r->start_sec) * 1000 + (tp->msec - r->start_msec);
 
403
    ms = (ngx_msec_int_t)
 
404
             ((tp->sec - r->start_sec) * 1000 + (tp->msec - r->start_msec));
404
405
    ms = (ms >= 0) ? ms : 0;
405
406
 
406
407
    return ngx_sprintf(buf, "%T.%03M", ms / 1000, ms % 1000);