summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-11-12 22:24:12 +0100
committerCarl Hetherington <cth@carlh.net>2023-11-19 22:34:01 +0100
commitc46f6125c482f2a3361cd33d1e1163927f038e9d (patch)
tree8b905cb411c395e617ba2c6d583497e1f4f43dea /src/util.h
parente3fa86ef35f212b14b593dd36dbff66e845d37e4 (diff)
Report progress with done/total rather than a float.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.h b/src/util.h
index ccbe6083..551eed07 100644
--- a/src/util.h
+++ b/src/util.h
@@ -85,11 +85,11 @@ extern std::string make_uuid ();
/** Create a digest for a file
* @param filename File name
- * @param progress Optional progress reporting function. The function will be called
- * with a progress value between 0 and 1
+ * @param progress Optional progress reporting function, called with a number of bytes done
+ * and a total number of bytes.
* @return Digest
*/
-extern std::string make_digest (boost::filesystem::path filename, boost::function<void (float)>);
+extern std::string make_digest(boost::filesystem::path filename, boost::function<void (int64_t, int64_t)>);
extern std::string make_digest (ArrayData data);