From: Kern Sibbald Date: Fri, 21 Aug 2009 06:40:33 +0000 (+0200) Subject: Add commas in num files for estimate command X-Git-Tag: Release-7.0.0~2649^2~8^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e8d4785fbc9039094d9ec9c9283a422436304d14;p=bacula%2Fbacula Add commas in num files for estimate command --- diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index af59139c5f..4054b29f30 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -148,7 +148,7 @@ static char errmsg[] = "2999 Invalid command\n"; static char no_auth[] = "2998 No Authorization\n"; static char invalid_cmd[] = "2997 Invalid command for a Director with Monitor directive enabled.\n"; static char OKinc[] = "2000 OK include\n"; -static char OKest[] = "2000 OK estimate files=%u bytes=%s\n"; +static char OKest[] = "2000 OK estimate files=%s bytes=%s\n"; static char OKlevel[] = "2000 OK level\n"; static char OKbackup[] = "2000 OK backup\n"; static char OKbootstrap[] = "2000 OK bootstrap\n"; @@ -456,7 +456,7 @@ static int setdebug_cmd(JCR *jcr) static int estimate_cmd(JCR *jcr) { BSOCK *dir = jcr->dir_bsock; - char ed2[50]; + char ed1[50], ed2[50]; if (sscanf(dir->msg, estimatecmd, &jcr->listing) != 1) { pm_strcpy(jcr->errmsg, dir->msg); @@ -465,7 +465,7 @@ static int estimate_cmd(JCR *jcr) return 0; } make_estimate(jcr); - dir->fsend(OKest, jcr->num_files_examined, + dir->fsend(OKest, edit_uint64_with_commas(jcr->num_files_examined, ed1), edit_uint64_with_commas(jcr->JobBytes, ed2)); dir->signal(BNET_EOD); return 1; diff --git a/bacula/technotes b/bacula/technotes index 49f4132265..246115310b 100644 --- a/bacula/technotes +++ b/bacula/technotes @@ -2,6 +2,8 @@ General: +21Aug09 +kes Add commas in num files for estimate command 19Aug09 kes Fix bat crash due to alignment diff in bat and core code In bsock.h, exact reason unknown.