浏览代码

safe_timestamp: arg is always an int

the Item object already does the bigint_to_int decode when accessing .mtime/.atime/.ctime
Thomas Waldmann 8 年之前
父节点
当前提交
b27cc37e85
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)