From: Eric Bollengier Date: Sat, 15 Jan 2011 14:21:35 +0000 (+0100) Subject: Fix #1685 about JobBytes counter when using Accurate/BaseJobs with checksum X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=51d516d221043fd80cdd143be012d2ab043f3066;p=bacula%2Fbacula Fix #1685 about JobBytes counter when using Accurate/BaseJobs with checksum --- diff --git a/bacula/src/filed/verify.c b/bacula/src/filed/verify.c index f280c05b01..5f3841d4c5 100644 --- a/bacula/src/filed/verify.c +++ b/bacula/src/filed/verify.c @@ -368,11 +368,13 @@ static int read_digest(BFILE *bfd, DIGEST *digest, JCR *jcr) crypto_digest_update(digest, (uint8_t *)buf, n); - /* Can be used by BaseJobs, update only for Verify jobs */ - if (jcr->getJobLevel() != L_FULL) { + /* Can be used by BaseJobs or with accurate, update only for Verify + * jobs + */ + if (jcr->getJobType() == JT_VERIFY) { jcr->JobBytes += n; - jcr->ReadBytes += n; } + jcr->ReadBytes += n; } if (n < 0) { berrno be;