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-Tag: Release-7.0.0~1226 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3dbd4e3d04ac98223b61bcfc50174c9514aa8678;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;