X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Fstatus.c;h=e5ef685ce5f7e4218a1beec0db8223e1a835229f;hb=da6fe6529a85f2557d91dc4c901b487d2d7dabf1;hp=11939fb247c99b873501a2505ac0436c81283488;hpb=74de3a7b8c973e2206ecfceed422fbae821965cf;p=bacula%2Fbacula diff --git a/bacula/src/stored/status.c b/bacula/src/stored/status.c index 11939fb247..e5ef685ce5 100644 --- a/bacula/src/stored/status.c +++ b/bacula/src/stored/status.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2003-2009 Free Software Foundation Europe e.V. + Copyright (C) 2003-2010 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -30,7 +30,6 @@ * * Kern Sibbald, May MMIII * - * Version $Id$ * */ @@ -223,8 +222,8 @@ static void list_status_header(STATUS_PKT *sp) bstrftime_nc(dt, sizeof(dt), daemon_start_time); - len = Mmsg(msg, _("Daemon started %s, %d Job%s run since started.\n"), - dt, num_jobs_run, num_jobs_run == 1 ? "" : "s"); + len = Mmsg(msg, _("Daemon started %s. Jobs: run=%d, running=%d.\n"), + dt, num_jobs_run, job_count()); sendit(msg, len, sp); len = Mmsg(msg, _(" Heap: heap=%s smbytes=%s max_bytes=%s bufs=%s max_bufs=%s\n"), @@ -400,7 +399,7 @@ static void list_running_jobs(STATUS_PKT *sp) foreach_jcr(jcr) { if (jcr->JobStatus == JS_WaitFD) { len = Mmsg(msg, _("%s Job %s waiting for Client connection.\n"), - job_type_to_str(jcr->get_JobType()), jcr->Job); + job_type_to_str(jcr->getJobType()), jcr->Job); sendit(msg, len, sp); } dcr = jcr->dcr; @@ -417,8 +416,8 @@ static void list_running_jobs(STATUS_PKT *sp) if (rdcr && rdcr->device) { len = Mmsg(msg, _("Reading: %s %s job %s JobId=%d Volume=\"%s\"\n" " pool=\"%s\" device=%s\n"), - job_level_to_str(jcr->get_JobLevel()), - job_type_to_str(jcr->get_JobType()), + job_level_to_str(jcr->getJobLevel()), + job_type_to_str(jcr->getJobType()), JobName, jcr->JobId, rdcr->VolumeName, @@ -430,8 +429,8 @@ static void list_running_jobs(STATUS_PKT *sp) if (dcr && dcr->device) { len = Mmsg(msg, _("Writing: %s %s job %s JobId=%d Volume=\"%s\"\n" " pool=\"%s\" device=%s\n"), - job_level_to_str(jcr->get_JobLevel()), - job_type_to_str(jcr->get_JobType()), + job_level_to_str(jcr->getJobLevel()), + job_type_to_str(jcr->getJobType()), JobName, jcr->JobId, dcr->VolumeName,