Reset last write times on examine.
authorCarl Hetherington <cth@carlh.net>
Tue, 21 Aug 2018 22:16:34 +0000 (23:16 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 21 Aug 2018 22:16:34 +0000 (23:16 +0100)
src/lib/content.cc

index 69dcbc1395e2a125032e686d68f80ae1a7e5a740..c2cb7e005969327fc94e54cc40be3ef912e6153e 100644 (file)
@@ -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