aboutsummaryrefslogtreecommitdiff
path: root/src/fs.c
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-10-16 23:02:03 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-10-16 23:03:08 +0300
commit01482f7632e86a12b9ee6d97eafa1dafa712f84e (patch)
treef73daafd9a094f473c8edc5097dca21256ba4a9e /src/fs.c
parentf2c1beb5c3139238a3570d8f5052635519367d26 (diff)
downloadrevela-01482f7632e86a12b9ee6d97eafa1dafa712f84e.tar.gz
revela-01482f7632e86a12b9ee6d97eafa1dafa712f84e.zip
Re-render album html when album.ini changedv0.1.2
Diffstat (limited to 'src/fs.c')
-rw-r--r--src/fs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fs.c b/src/fs.c
index b2c94c8..3d2c4da 100644
--- a/src/fs.c
+++ b/src/fs.c
@@ -138,8 +138,7 @@ file_is_uptodate(const char *path, const struct timespec *srcmtim)
return -1;
}
return 0;
- } else if (dststat.st_mtim.tv_sec != srcmtim->tv_sec
- || dststat.st_mtim.tv_nsec != srcmtim->tv_nsec) {
+ } else if (!TIMEQUAL(dststat.st_mtim, *srcmtim)) {
return 0;
}