Explorar o código

safe_timestamp: arg is always an int

the Item object already does the bigint_to_int decode when accessing .mtime/.atime/.ctime
Thomas Waldmann %!s(int64=8) %!d(string=hai) anos
pai
achega
b27cc37e85
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/borg/helpers.py

+ 1 - 1
src/borg/helpers.py

@@ -859,7 +859,7 @@ def safe_ns(ts):
 
 
 def safe_timestamp(item_timestamp_ns):
-    t_ns = safe_ns(bigint_to_int(item_timestamp_ns))
+    t_ns = safe_ns(item_timestamp_ns)
     return datetime.fromtimestamp(t_ns / 1e9)