mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-30 19:21:17 +00:00
fix incorrect _ns variables
This commit is contained in:
parent
353774973e
commit
f406bf7879
1 changed files with 5 additions and 5 deletions
10
borg/fuse.py
10
borg/fuse.py
|
@ -174,15 +174,15 @@ def getattr(self, inode, ctx=None):
|
|||
else:
|
||||
entry.st_ctime_ns = bigint_to_int(item[b'mtime'])
|
||||
else:
|
||||
entry.st_mtime_ns = bigint_to_int(item[b'mtime']) / 1e9
|
||||
entry.st_mtime = bigint_to_int(item[b'mtime']) / 1e9
|
||||
if b'atime' in item:
|
||||
entry.st_atime_ns = bigint_to_int(item[b'atime']) / 1e9
|
||||
entry.st_atime = bigint_to_int(item[b'atime']) / 1e9
|
||||
else:
|
||||
entry.st_atime_ns = bigint_to_int(item[b'mtime']) / 1e9
|
||||
entry.st_atime = bigint_to_int(item[b'mtime']) / 1e9
|
||||
if b'ctime' in item:
|
||||
entry.st_ctime_ns = bigint_to_int(item[b'ctime']) / 1e9
|
||||
entry.st_ctime = bigint_to_int(item[b'ctime']) / 1e9
|
||||
else:
|
||||
entry.st_ctime_ns = bigint_to_int(item[b'mtime']) / 1e9
|
||||
entry.st_ctime = bigint_to_int(item[b'mtime']) / 1e9
|
||||
return entry
|
||||
|
||||
def listxattr(self, inode, ctx=None):
|
||||
|
|
Loading…
Reference in a new issue