Changeset 5491270242210913e348d069064085eb206601bf
- Timestamp:
- 06/13/10 15:00:40
(3 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1276441240 +0000
- git-parent:
[cea7bad500f166f4b98b61333b92bec7ccd29c7b]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1276441240 +0000
- Message:
refs #34
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rc6a5f68 |
r5491270 |
|
| 68 | 68 | gettimeofday(&now, NULL); |
|---|
| 69 | 69 | sub_timeval(e->whence, now, &diff); |
|---|
| 70 | | snprintf(wfn, sizeof(wfn), " fires: %lld.%06ds", (long long)diff.tv_sec, diff.tv_usec); |
|---|
| | 70 | snprintf(wfn, sizeof(wfn), " fires: %lld.%06ds", (long long)diff.tv_sec, (int)diff.tv_usec); |
|---|
| 71 | 71 | snprintf(funcptr, sizeof(funcptr), "%p", e->callback); |
|---|
| 72 | 72 | nc_printf(ncct, " [%p]%s%s [%c%c%c%c] -> %s(%p)\n", |
|---|
| rc6a5f68 |
r5491270 |
|
| 442 | 442 | struct stat st; |
|---|
| 443 | 443 | int fd; |
|---|
| 444 | | void *contents; |
|---|
| | 444 | void *contents = MAP_FAILED; |
|---|
| 445 | 445 | |
|---|
| 446 | 446 | if(npats != 1 || |
|---|
| … | … | |
| 479 | 479 | contents = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); |
|---|
| 480 | 480 | close(fd); |
|---|
| 481 | | if(contents == (void *)-1) goto not_found; |
|---|
| | 481 | if(contents == MAP_FAILED) goto not_found; |
|---|
| 482 | 482 | } |
|---|
| 483 | 483 | noit_http_response_ok(ctx, "text/html"); |
|---|