summaryrefslogtreecommitdiff
path: root/ftpfs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'ftpfs/dir.c')
-rw-r--r--ftpfs/dir.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ftpfs/dir.c b/ftpfs/dir.c
index 8544a325..fb35a451 100644
--- a/ftpfs/dir.c
+++ b/ftpfs/dir.c
@@ -532,7 +532,9 @@ ftpfs_refresh_node (struct node *node)
}
}
- if ((entry->stat.st_mtime < node->nn_stat.st_mtime
+ if ((entry->stat.st_mtim.tv_sec < node->nn_stat.st_mtim.tv_sec
+ || (entry->stat.st_mtim.tv_sec == node->nn_stat.st_mtim.tv_sec
+ && entry->stat.st_mtim.tv_nsec < node->nn_stat.st_mtim.tv_nsec)
|| entry->stat.st_size != node->nn_stat.st_size)
&& nn && nn->contents)
/* The file has changed. */