summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-12-23 23:33:56 +0100
committerCarl Hetherington <cth@carlh.net>2022-05-02 00:22:43 +0200
commita2f8e8839f276bc83d5926983ab2d38e0a36f927 (patch)
tree24a3485fbd6a6db99d72328be3f053a7ad121645 /src/lib/util.cc
parent809bcfd85fad2ef7d4131c054be4cccd5bcc9d05 (diff)
Extract simple_digest().
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 7106cc782..6e2a1ad64 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -530,6 +530,13 @@ digest_head_tail (vector<boost::filesystem::path> files, boost::uintmax_t size)
}
+string
+simple_digest (vector<boost::filesystem::path> paths)
+{
+ return digest_head_tail(paths, 1000000) + raw_convert<string>(boost::filesystem::file_size(paths.front()));
+}
+
+
/** Trip an assert if the caller is not in the UI thread */
void
ensure_ui_thread ()