aboutsummaryrefslogtreecommitdiff
path: root/src/Headers.c
diff options
context:
space:
mode:
authorallen <allen@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2000-10-04 05:33:14 +0000
committerallen <allen@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2000-10-04 05:33:14 +0000
commitcb5462e263b2216229b16fcc53ed516eb966d3c2 (patch)
tree36bb3db4ac96cb8fced8767a5eab92c0542dd172 /src/Headers.c
parentcb6d31122082362afcd6abaf1aa4cf0981ca16aa (diff)
Display just the parameter filename instead of the whole path
Fixed a couple of small string bugs git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@92 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Headers.c')
-rw-r--r--src/Headers.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Headers.c b/src/Headers.c
index 23899df..d9646ed 100644
--- a/src/Headers.c
+++ b/src/Headers.c
@@ -99,6 +99,8 @@ int HTTP_ContentHeader(cGH *GH, int choice, int len, char *header, char *menu)
char currenttime[50];
char quicklinks[524];
struct httpLink *link;
+ char *file;
+ char *dir;
int titlelen,datelen,timelen,parlen;
@@ -120,7 +122,9 @@ int HTTP_ContentHeader(cGH *GH, int choice, int len, char *header, char *menu)
{
/* Find strings needed for nonmain-page headers */
titlelen = CCTK_RunTitle(TITLE_ARRAY_SIZE,title);
- parlen = CCTK_ParameterFilename(200,parfile);
+ parlen = CCTK_ParameterFilename(200,parfile);
+ Util_SplitFilename(&dir,&file,parfile);
+
datelen = Util_CurrentDate(50,currentdate);
timelen = Util_CurrentTime(50,currenttime);
@@ -149,7 +153,7 @@ int HTTP_ContentHeader(cGH *GH, int choice, int len, char *header, char *menu)
"<dt>Iteration: %d\n"
"<dt>Physical time: %4.2f\n"
"</dl>\n"
- ,header,title,parfile,
+ ,header,title,file,
GH ? GH->cctk_iteration : 0 , GH ? GH->cctk_time : 0);
if (ContentLinks)
{