summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/node-times.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/node-times.c b/libdiskfs/node-times.c
index 05f558be..60eabc0f 100644
--- a/libdiskfs/node-times.c
+++ b/libdiskfs/node-times.c
@@ -40,10 +40,10 @@ atime_should_update (struct node *np)
if (_diskfs_relatime)
{
/* Update atime if mtime is younger than atime. */
- if (np->dn_stat.st_mtim.tv_sec > np->dn_stat.st_atim.tv_sec)
+ if (np->dn_stat.st_mtim.tv_sec >= np->dn_stat.st_atim.tv_sec)
return 1;
/* Update atime if ctime is younger than atime. */
- if (np->dn_stat.st_ctim.tv_sec > np->dn_stat.st_atim.tv_sec)
+ if (np->dn_stat.st_ctim.tv_sec >= np->dn_stat.st_atim.tv_sec)
return 1;
/* Update atime if current atime is more than 24 hours old. */
maptime_read (diskfs_mtime, &t);