version 1.62, 2013/04/23 14:32:53 |
version 1.63, 2013/05/22 12:14:08 |
|
|
* needed, we don't have to fetch it again. */ |
* needed, we don't have to fetch it again. */ |
if (DEBUG(DIR)) |
if (DEBUG(DIR)) |
printf("Caching %s for %s\n", |
printf("Caching %s for %s\n", |
time_to_string(mtime), file); |
time_to_string(&mtime), file); |
record_stamp(file, mtime); |
record_stamp(file, mtime); |
return file; |
return file; |
} else |
} else |
|
|
|
|
ts_set_from_stat(stb, mtime); |
ts_set_from_stat(stb, mtime); |
if (DEBUG(DIR)) |
if (DEBUG(DIR)) |
printf("Caching %s for %s\n", time_to_string(mtime), q); |
printf("Caching %s for %s\n", time_to_string(&mtime), |
|
q); |
record_stamp(q, mtime); |
record_stamp(q, mtime); |
return q; |
return q; |
} else { |
} else { |
|
|
* actually go to the file system. */ |
* actually go to the file system. */ |
if (DEBUG(DIR)) |
if (DEBUG(DIR)) |
printf("Using cached time %s for %s\n", |
printf("Using cached time %s for %s\n", |
time_to_string(entry->mtime), fullName); |
time_to_string(&entry->mtime), fullName); |
mtime = entry->mtime; |
mtime = entry->mtime; |
free(entry); |
free(entry); |
ohash_remove(&mtimes, slot); |
ohash_remove(&mtimes, slot); |