Stefan Schuermans commited on 2011-10-24 20:35:28
Showing 1 changed files, with 2 additions and 2 deletions.
| ... | ... |
@@ -19,7 +19,7 @@ namespace Blinker {
|
| 19 | 19 |
*/ |
| 20 | 20 |
File::File(const std::string &path): |
| 21 | 21 |
m_path(path), |
| 22 |
- m_lastCheck() // initialize last check to "now" |
|
| 22 |
+ m_lastCheck(Time::now()) |
|
| 23 | 23 |
{
|
| 24 | 24 |
} |
| 25 | 25 |
|
| ... | ... |
@@ -40,7 +40,7 @@ bool File::checkModified() |
| 40 | 40 |
{
|
| 41 | 41 |
/* get current time before getting modification time |
| 42 | 42 |
for not missing any modification */ |
| 43 |
- Time now; |
|
| 43 |
+ Time now = Time::now(); |
|
| 44 | 44 |
|
| 45 | 45 |
// get modification time |
| 46 | 46 |
struct stat s; |
| 47 | 47 |