mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-14 00:14:07 +00:00
Fixed a bug about stat_cache_expire - #382
This commit is contained in:
parent
d16d616f34
commit
34b604cdfe
@ -104,7 +104,9 @@ inline int CompareStatCacheTime(struct timespec& ts1, struct timespec& ts2)
|
||||
|
||||
inline bool IsExpireStatCacheTime(const struct timespec& ts, const time_t& expire)
|
||||
{
|
||||
return ((ts.tv_sec + expire) < time(NULL));
|
||||
struct timespec nowts;
|
||||
SetStatCacheTime(nowts);
|
||||
return ((ts.tv_sec + expire) < nowts.tv_sec);
|
||||
}
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user