From c5a16d48c986e305fd5b5ac98395eb4eac053399 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 27 May 2018 12:23:47 +0200 Subject: [PATCH] Apply patch from Wandlei Huttel to add Run Time and suffix to Restored bytes --- bacula/src/dird/restore.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bacula/src/dird/restore.c b/bacula/src/dird/restore.c index 714846fd4b..e3d7f8c2d6 100644 --- a/bacula/src/dird/restore.c +++ b/bacula/src/dird/restore.c @@ -609,7 +609,7 @@ bool do_restore_init(JCR *jcr) void restore_cleanup(JCR *jcr, int TermCode) { char sdt[MAX_TIME_LENGTH], edt[MAX_TIME_LENGTH]; - char ec1[30], ec2[30], ec3[30]; + char ec1[30], ec2[30], ec3[30], ec4[30], elapsed[50]; char term_code[100], fd_term_msg[100], sd_term_msg[100]; const char *term_msg; int msg_type = M_INFO; @@ -699,9 +699,10 @@ void restore_cleanup(JCR *jcr, int TermCode) " Restore Client: %s\n" " Start time: %s\n" " End time: %s\n" +" Elapsed time: %s\n" " Files Expected: %s\n" " Files Restored: %s\n" -" Bytes Restored: %s\n" +" Bytes Restored: %s (%sB)\n" " Rate: %.1f KB/s\n" " FD Errors: %d\n" " FD termination status: %s\n" @@ -714,9 +715,10 @@ void restore_cleanup(JCR *jcr, int TermCode) jcr->client->name(), sdt, edt, + edit_utime(RunTime, elapsed, sizeof(elapsed)), edit_uint64_with_commas((uint64_t)jcr->ExpectedFiles, ec1), edit_uint64_with_commas((uint64_t)jcr->jr.JobFiles, ec2), - edit_uint64_with_commas(jcr->jr.JobBytes, ec3), + edit_uint64_with_commas(jcr->jr.JobBytes, ec3), edit_uint64_with_suffix(jcr->jr.JobBytes, ec4), (float)kbps, jcr->JobErrors, fd_term_msg, -- 2.39.5