len = Mmsg(&msg, "%s Version: " VERSION " (" BDATE ") %s %s %s\n", my_name,
HOST_OS, DISTNAME, DISTVER);
sendit(msg, len, arg);
- bstrftime(dt, sizeof(dt), daemon_start_time);
+ bstrftime_nc(dt, sizeof(dt), daemon_start_time);
len = Mmsg(&msg, _("Daemon started %s, %d Job%s run.\n"), dt, last_job.NumJobs,
last_job.NumJobs == 1 ? "" : "s");
sendit(msg, len, arg);
struct s_last_job *je;
lock_last_jobs_list();
for (je=NULL; (je=(s_last_job *)last_jobs->next(je)); ) {
- bstrftime(dt, sizeof(dt), je->end_time);
+ bstrftime_nc(dt, sizeof(dt), je->end_time);
len = Mmsg(&msg, _("Last Job %s finished at %s\n"), je->Job, dt);
sendit(msg, len, arg);
Dmsg0(200, "Begin status jcr loop.\n");
lock_jcr_chain();
for (njcr=NULL; (njcr=get_next_jcr(njcr)); ) {
- bstrftime(dt, sizeof(dt), njcr->start_time);
+ bstrftime_nc(dt, sizeof(dt), njcr->start_time);
if (njcr->JobId == 0) {
len = Mmsg(&msg, _("Director connected at: %s\n"), dt);
} else {
lock_last_jobs_list();
msg = _("\nTerminated Jobs:\n");
sendit(msg, strlen(msg), arg);
- msg = _("Level Files Bytes Status Finished Name \n");
+ msg = _(" JobId Level Files Bytes Status Finished Name \n");
sendit(msg, strlen(msg), arg);
- msg = _("====================================================================\n");
+ msg = _("======================================================================\n");
sendit(msg, strlen(msg), arg);
for (je=NULL; (je=(s_last_job *)last_jobs->next(je)); ) {
char JobName[MAX_NAME_LENGTH];
char *termstat;
char buf[1000];
- bstrftime(dt, sizeof(dt), je->end_time);
- strcpy(dt+7, dt+9); /* cut century */
+ bstrftime_nc(dt, sizeof(dt), je->end_time);
switch (je->JobType) {
case JT_ADMIN:
case JT_RESTORE:
*p = 0;
}
}
- bsnprintf(buf, sizeof(buf), _("%-4s %8s %12s %-7s %-8s %s\n"),
+ bsnprintf(buf, sizeof(buf), _("%6d %-4s %8s %14s %-7s %-8s %s\n"),
+ je->JobId,
level,
edit_uint64_with_commas(je->JobFiles, b1),
edit_uint64_with_commas(je->JobBytes, b2),