From 3dbd4e3d04ac98223b61bcfc50174c9514aa8678 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 15 Jan 2011 15:21:35 +0100 Subject: [PATCH] Fix #1685 about JobBytes counter when using Accurate/BaseJobs with checksum --- bacula/src/filed/verify.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; -- 2.39.5