From db012fac32af3c79c4843a35709ff0efa88f8730 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 26 Aug 2009 15:56:37 +0200 Subject: [PATCH] Update JobBytes only for Verify jobs when computing checksum --- bacula/src/filed/verify.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; -- 2.39.5