Skip to content

Commit

Permalink
Have mtime from lstat be in str format
Browse files Browse the repository at this point in the history
  • Loading branch information
andreleblanc11 committed Jan 7, 2025
1 parent d6e226f commit 905d242
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sarracenia/flow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,8 @@ def compute_local_checksum(self, msg, lstat=None) -> None:

if s:
metadata_cached_mtime = x.get('mtime')
if (lstat and (metadata_cached_mtime >= lstat.st_mtime)):
lstat_mtime = sarracenia.timeflt2str(lstat.st_mtime)
if (lstat and (metadata_cached_mtime >= lstat_mtime)):
# file has not been modified since checksum value was stored.

if (( 'identity' in msg ) and ( 'method' in msg['identity'] ) and \
Expand Down

0 comments on commit 905d242

Please sign in to comment.