diff options
author | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-21 15:00:17 +0000 |
---|---|---|
committer | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-21 15:00:17 +0000 |
commit | 3be0a18c744e0b3b853d2430fb8bdc06bac86b40 (patch) | |
tree | ac178b0c56241eb907e79ebbf0d49bf27f730fb5 /src | |
parent | b72c001cf30767b0a12cfa816ec47b944ecc1d74 (diff) |
Report iteration and time as 0 if GH is NULL.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@77 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src')
-rw-r--r-- | src/Headers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Headers.c b/src/Headers.c index 9c16211..95b3f93 100644 --- a/src/Headers.c +++ b/src/Headers.c @@ -59,7 +59,7 @@ static const char *cactus_mainheader = static const char *cactus_footer = "</table>\n" -"<TABLE WIDTH=100\% BORDER=0>\n" +"<TABLE WIDTH=100%% BORDER=0>\n" "<tr><td colspan=2><HR NOSHADE SIZE=1></td></tr>\n" "<tr><td align=left valign=top>" "<ADDRESS><DIV ALIGN=left>\n" @@ -141,7 +141,7 @@ int HTTP_ContentHeader(cGH *GH, int choice, int len, char *header, char *menu) "<dt>Iteration: %d" "<dt>Physical time: %4.2f" "</dl>" - ,header,title,GH->cctk_iteration,GH->cctk_time); + ,header,title,GH ? GH->cctk_iteration : 0 , GH ? GH->cctk_time : 0); if (ContentLinks) { strcat(header,quicklinks); |