summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-03-15 06:43:15 +0000
committerAndrew Tridgell <tridge@samba.org>1998-03-15 06:43:15 +0000
commit7a418233e27a21d0177fbc7ac657e9fdf74a0a4a (patch)
tree9872ef9b556c9115363b26e2f3f468c31ae88e23 /source3
parent7f5fad03026753f72a129d7986d5aea6bd70be6b (diff)
downloadsamba-7a418233e27a21d0177fbc7ac657e9fdf74a0a4a.tar.gz
samba-7a418233e27a21d0177fbc7ac657e9fdf74a0a4a.tar.bz2
samba-7a418233e27a21d0177fbc7ac657e9fdf74a0a4a.zip
changed the date formatting
(This used to be commit 57aa1db47cda9c625cd1ef742fece14d14590590)
Diffstat (limited to 'source3')
-rw-r--r--source3/web/statuspage.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/source3/web/statuspage.c b/source3/web/statuspage.c
index 25a45928f2..3ba46ff14f 100644
--- a/source3/web/statuspage.c
+++ b/source3/web/statuspage.c
@@ -22,6 +22,14 @@
#include "includes.h"
+static char *tstring(time_t t)
+{
+ static pstring buf;
+ pstrcpy(buf, asctime(LocalTime(&t)));
+ string_sub(buf," ","&nbsp;");
+ return buf;
+}
+
static void print_share_mode(share_mode_entry *e, char *fname)
{
printf("<tr><td>%d</td>",e->pid);
@@ -57,7 +65,7 @@ static void print_share_mode(share_mode_entry *e, char *fname)
printf("</td>");
printf("<td>%s</td><td>%s</td></tr>\n",
- fname,asctime(LocalTime((time_t *)&e->time.tv_sec)));
+ fname,tstring(e->time.tv_sec));
}
@@ -157,7 +165,7 @@ void status_page(void)
printf("<tr><td>%d</td><td>%s</td><td>%s</td><td>%s</td><td><input type=submit value=\"X\" name=\"kill_%d\"></td></tr>\n",
crec.pid,
crec.machine,crec.addr,
- asctime(LocalTime(&crec.start)),
+ tstring(crec.start),
crec.pid);
}
}
@@ -179,7 +187,7 @@ void status_page(void)
crec.name,uidtoname(crec.uid),
gidtoname(crec.gid),crec.pid,
crec.machine,
- asctime(LocalTime(&crec.start)));
+ tstring(crec.start));
}
}