From: Kern Sibbald Date: Tue, 12 Jul 2016 08:21:21 +0000 (+0200) Subject: Modify status to include Admin and Restore in Level field -- clearer X-Git-Tag: Release-7.4.4~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=90822b4ce48cfb6a9cd08d6c215891774153ef4b;p=bacula%2Fbacula Modify status to include Admin and Restore in Level field -- clearer --- diff --git a/bacula/src/dird/ua_status.c b/bacula/src/dird/ua_status.c index ccf0b84923..c0faaa880e 100644 --- a/bacula/src/dird/ua_status.c +++ b/bacula/src/dird/ua_status.c @@ -522,8 +522,10 @@ static void prt_runtime(UAContext *ua, sched_pkt *sp) bstrftime_nc(dt, sizeof(dt), sp->runtime); switch (sp->job->JobType) { case JT_ADMIN: + level_ptr = "Admin"; + break; case JT_RESTORE: - level_ptr = " "; + level_ptr = "Restore"; break; default: level_ptr = level_to_str(sp->level); @@ -680,8 +682,10 @@ static void llist_scheduled_jobs(UAContext *ua) } switch (job->JobType) { case JT_ADMIN: + level_ptr = "Admin"; + break; case JT_RESTORE: - level_ptr = " "; + level_ptr = "Restore"; break; default: level_ptr = level_to_str(level); @@ -1032,8 +1036,10 @@ static void list_running_jobs(UAContext *ua) } switch (jcr->getJobType()) { case JT_ADMIN: + bstrncpy(level, "Admin", sizeof(level)); + break; case JT_RESTORE: - bstrncpy(level, " ", sizeof(level)); + bstrncpy(level, "Restore", sizeof(level)); break; default: bstrncpy(level, level_to_str(jcr->getJobLevel()), sizeof(level)); @@ -1107,8 +1113,10 @@ static void list_terminated_jobs(UAContext *ua) bstrftime_nc(dt, sizeof(dt), je->end_time); switch (je->JobType) { case JT_ADMIN: + bstrncpy(level, "Admin", sizeof(level)); + break; case JT_RESTORE: - bstrncpy(level, " ", sizeof(level)); + bstrncpy(level, "Restore", sizeof(level)); break; default: bstrncpy(level, level_to_str(je->JobLevel), sizeof(level));