From: Eric Bollengier Date: Wed, 26 Aug 2009 13:56:37 +0000 (+0200) Subject: Update JobBytes only for Verify jobs when computing checksum X-Git-Tag: Release-5.0.0~326 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=db012fac32af3c79c4843a35709ff0efa88f8730;p=bacula%2Fbacula Update JobBytes only for Verify jobs when computing checksum --- diff --git a/bacula/src/filed/verify.c b/bacula/src/filed/verify.c index f4da34b666..a4f2737230 100644 --- a/bacula/src/filed/verify.c +++ b/bacula/src/filed/verify.c @@ -361,8 +361,12 @@ static int read_digest(BFILE *bfd, DIGEST *digest, JCR *jcr) } crypto_digest_update(digest, (uint8_t *)buf, n); - jcr->JobBytes += n; - jcr->ReadBytes += n; + + /* Can be used by BaseJobs, update only for Verify jobs */ + if (jcr->get_JobLevel() != L_FULL) { + jcr->JobBytes += n; + jcr->ReadBytes += n; + } } if (n < 0) { berrno be;