An order-of-operations bug can lead to files being counted as hashed
when they are not (e.g. due to I/O error or the file disappearing).
Calculate the digest, then increment the statistics.
git-svn-id: svn+ssh://svn.furryterror.org/r/trunk/mokona/zblaxell@3332
a5e33b96-951a-0410-ae88-
c0fe16d076bb
if ($skip_hashes) {
return "SKIPPING HASHES";
} else {
- &really_digest($filename);
+ my $digest = &really_digest($filename);
$hash_bytes += -s $filename;
$hash_files++;
+ return $digest
}
}