diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-13 12:17:47 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-13 12:17:47 +0100 |
| commit | a306df9145d16046e51e8b7ff5222e341e98fdbd (patch) | |
| tree | a264a33776589679a6b2ea2136d5d0dab01aa88a /src/lib/content.cc | |
| parent | 4c4aeeda4f1cec028072f9995572f8a67dca974f (diff) | |
Rename MD5Digester -> Digester.
Diffstat (limited to 'src/lib/content.cc')
| -rw-r--r-- | src/lib/content.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/content.cc b/src/lib/content.cc index b8e7f8ad2..b64e68c4b 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -161,10 +161,10 @@ Content::examine (shared_ptr<Job> job) lm.unlock (); /* Some content files are very big, so we use a poor man's - digest here: a MD5 of the first and last 1e6 bytes with the + digest here: a digest of the first and last 1e6 bytes with the size of the first file tacked on the end as a string. */ - string const d = md5_digest_head_tail (p, 1000000) + raw_convert<string> (boost::filesystem::file_size (p.front ())); + string const d = digest_head_tail (p, 1000000) + raw_convert<string> (boost::filesystem::file_size (p.front ())); lm.lock (); _digest = d; |
