summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-08-21 23:16:34 +0100
committerCarl Hetherington <cth@carlh.net>2018-08-21 23:16:34 +0100
commitef2acd1e5a069fd5b4a332f1b1487ac55ec1a25a (patch)
treede0ad0715f45aa05bdf76df154f5aef1b6ee2539 /src/lib
parentf30bd5d2355bc02d1b5c7772241e191b60028dd2 (diff)
Reset last write times on examine.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/content.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/content.cc b/src/lib/content.cc
index 69dcbc139..c2cb7e005 100644
--- a/src/lib/content.cc
+++ b/src/lib/content.cc
@@ -194,6 +194,11 @@ Content::examine (shared_ptr<Job> job)
boost::mutex::scoped_lock lm (_mutex);
_digest = d;
+
+ _last_write_times.clear ();
+ BOOST_FOREACH (boost::filesystem::path i, _paths) {
+ _last_write_times.push_back (boost::filesystem::last_write_time(i));
+ }
}
void