Stefan Schuermans commited on 2011-10-24 21:14:03
Showing 1 changed files, with 2 additions and 2 deletions.
... | ... |
@@ -47,10 +47,10 @@ bool File::checkModified() |
47 | 47 |
if (stat(m_path.c_str(), &s)) |
48 | 48 |
return false; // cannot stat -> silently ignore |
49 | 49 |
Time modified(s.st_mtime); |
50 |
- Time changed(s.st_mtime); |
|
50 |
+ Time changed(s.st_ctime); |
|
51 | 51 |
|
52 | 52 |
// has file been modified/changed since last check |
53 |
- bool mod = modified > m_lastCheck || changed > m_lastCheck; |
|
53 |
+ bool mod = modified >= m_lastCheck || changed >= m_lastCheck; |
|
54 | 54 |
|
55 | 55 |
// remember "now" as last check time |
56 | 56 |
m_lastCheck = now; |
57 | 57 |