From: Kern Sibbald Date: Wed, 18 Apr 2012 20:37:58 +0000 (+0200) Subject: Print seconds in schedule time as noted in bug #1854 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9c4b8394ea5cbc9dbe060fc4be6d73666eeabeb0;p=bacula%2Fbacula Print seconds in schedule time as noted in bug #1854 --- diff --git a/bacula/src/dird/admin.c b/bacula/src/dird/admin.c index 18b4a860a2..b7773e4c6e 100644 --- a/bacula/src/dird/admin.c +++ b/bacula/src/dird/admin.c @@ -76,7 +76,7 @@ bool do_admin(JCR *jcr) */ void admin_cleanup(JCR *jcr, int TermCode) { - char sdt[50], edt[50]; + char sdt[50], edt[50], schedt[50]; char term_code[100]; const char *term_msg; int msg_type; @@ -110,18 +110,22 @@ void admin_cleanup(JCR *jcr, int TermCode) sprintf(term_code, _("Inappropriate term code: %c\n"), jcr->JobStatus); break; } - bstrftime(sdt, sizeof(sdt), jcr->jr.StartTime); - bstrftime(edt, sizeof(edt), jcr->jr.EndTime); + bstrftimes(schedt, sizeof(schedt), jcr->jr.SchedTime); + bstrftimes(sdt, sizeof(sdt), jcr->jr.StartTime); + bstrftimes(edt, sizeof(edt), jcr->jr.EndTime); + Jmsg(jcr, msg_type, 0, _("Bacula " VERSION " (" LSMDATE "): %s\n" " JobId: %d\n" " Job: %s\n" +" Scheduled time: %s\n" " Start time: %s\n" " End time: %s\n" " Termination: %s\n\n"), edt, jcr->jr.JobId, jcr->jr.Job, + schedt, sdt, edt, term_msg);