diff options
author | onefang | 2021-08-11 19:31:59 +1000 |
---|---|---|
committer | onefang | 2021-08-11 19:31:59 +1000 |
commit | 7cbcdfee4e2f8088487d3bd276afc797d6d70eaa (patch) | |
tree | bdc99b90c505f5fe0dad27e080c98e2b637c497a /src | |
parent | Work a bit on directory creation and tear down, as well as permissions. (diff) | |
download | opensim-SC-7cbcdfee4e2f8088487d3bd276afc797d6d70eaa.zip opensim-SC-7cbcdfee4e2f8088487d3bd276afc797d6d70eaa.tar.gz opensim-SC-7cbcdfee4e2f8088487d3bd276afc797d6d70eaa.tar.bz2 opensim-SC-7cbcdfee4e2f8088487d3bd276afc797d6d70eaa.tar.xz |
More betterer output.
Diffstat (limited to 'src')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 05e35a9..f04d5ff 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -8292,6 +8292,14 @@ sendReply: | |||
8292 | 8292 | ||
8293 | fcgiDone: | 8293 | fcgiDone: |
8294 | FCGI_Finish(); | 8294 | FCGI_Finish(); |
8295 | |||
8296 | struct timespec now; | ||
8297 | if (-1 == clock_gettime(CLOCK_REALTIME, &now)) | ||
8298 | perror_msg("Unable to get the time."); | ||
8299 | double n = (now.tv_sec * 1000000000.0) + now.tv_nsec; | ||
8300 | double t = (Rd->then.tv_sec * 1000000000.0) + Rd->then.tv_nsec; | ||
8301 | T("Finished web request, took %lf seconds for %s %s://%s%s -> %s%s", (n - t) / 1000000000.0, Rd->Method, Rd->Scheme, Rd->Host, Rd->RUri, webRoot, Rd->Path); | ||
8302 | |||
8295 | if (NULL != Rd->outQuery) free(Rd->outQuery); | 8303 | if (NULL != Rd->outQuery) free(Rd->outQuery); |
8296 | if (NULL != Rd->shs.name) free(Rd->shs.name); | 8304 | if (NULL != Rd->shs.name) free(Rd->shs.name); |
8297 | Rd->shs.name = NULL; | 8305 | Rd->shs.name = NULL; |
@@ -8312,12 +8320,6 @@ fcgiDone: | |||
8312 | if (Rd->lnk) free(Rd->lnk); | 8320 | if (Rd->lnk) free(Rd->lnk); |
8313 | free(Rd->RUri); | 8321 | free(Rd->RUri); |
8314 | 8322 | ||
8315 | struct timespec now; | ||
8316 | if (-1 == clock_gettime(CLOCK_REALTIME, &now)) | ||
8317 | perror_msg("Unable to get the time."); | ||
8318 | double n = (now.tv_sec * 1000000000.0) + now.tv_nsec; | ||
8319 | double t = (Rd->then.tv_sec * 1000000000.0) + Rd->then.tv_nsec; | ||
8320 | I("Finished web request, took %lf seconds", (n - t) / 1000000000.0); | ||
8321 | free(Rd); | 8323 | free(Rd); |
8322 | } | 8324 | } |
8323 | 8325 | ||