mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Converting mtime to float for cicd.
This commit is contained in:
parent
eac367a4a4
commit
ac49fce12b
1 changed files with 1 additions and 1 deletions
|
|
@ -435,7 +435,7 @@ async def compare_file_groups(root: Path = None, batch_size: int = 10000) -> Fil
|
|||
for filename in fs_files
|
||||
)
|
||||
# If filesystem mtime is newer than DB mtime, content changed
|
||||
if fs_mtime > db_mtime + 0.001: # small tolerance for float comparison
|
||||
if fs_mtime > float(db_mtime) + 0.001: # small tolerance for float comparison
|
||||
modified.append(diff)
|
||||
else:
|
||||
unchanged.append(diff)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue