return higher precision times in lfs.attributes

This commit is contained in:
Hisham Muhammad
2021-01-23 15:16:20 -03:00
parent 442fabb11a
commit 6adf412a25
2 changed files with 20 additions and 5 deletions

View File

@@ -151,8 +151,8 @@ io.flush()
-- Restore access time to current value
assert (lfs.touch (tmpfile, attrib.access, attrib.modification))
new_att = assert (lfs.attributes (tmpfile))
assert (new_att.access == attrib.access)
assert (new_att.modification == attrib.modification)
assert (new_att.access - attrib.access < 1)
assert (new_att.modification - attrib.modification < 1)
io.write(".")
io.flush()