print 'never' and not the epoch time if there was never a response

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36724 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Dave Wetzel 2013-06-12 02:07:41 +00:00
parent b510389dd7
commit 44ec0f3a83
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2013-06-11: David Wetzel <dave@turbocat.de>
* GSWAdaptors/Apache2/mod_gsw.c
print 'never' and not the epoch time if there was never a response
2013-06-09: Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
* GSWAdaptors/Apache/mod_gsweb.c
* GSWAdaptors/common/GNUmakefile

View file

@ -1364,8 +1364,12 @@ static int gsw_handler(request_rec *r)
ap_rprintf(r, "<td>%s</td>", (mem[i].refusing == 1) ? "YES": "NO");
apr_ctime(timestr, mem[i].last_request_time);
ap_rprintf(r, "<td>%s</td>", timestr);
apr_ctime(timestr, mem[i].last_response_time);
ap_rprintf(r, "<td>%s</td></tr>\n", timestr);
if (mem[i].last_response_time > 0) {
apr_ctime(timestr, mem[i].last_response_time);
ap_rprintf(r, "<td>%s</td></tr>\n", timestr);
} else {
ap_rprintf(r, "<td>never</td></tr>\n");
}
}
ap_rputs("</table><br>\n",r);