From 5cd068c1bf2827af129860bf2aebae495c81ede7 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sun, 13 Mar 2011 20:37:56 -0500 Subject: [PATCH] Don't accidentally pass atime/ctime/mtime through from_stat_time() twice. Don't accidentally pass atime/ctime/mtime through FSTime.from_stat_time() twice in the xstat stat_result.from_stat_rep() static method when _have_ns_fs_timestamps is false. Signed-off-by: Rob Browning --- lib/bup/xstat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bup/xstat.py b/lib/bup/xstat.py index 374954a..d279b93 100644 --- a/lib/bup/xstat.py +++ b/lib/bup/xstat.py @@ -114,9 +114,9 @@ class stat_result(): result.st_gid = st.st_gid result.st_rdev = st.st_rdev result.st_size = st.st_size - atime = FSTime.from_stat_time(st.st_atime) - mtime = FSTime.from_stat_time(st.st_mtime) - ctime = FSTime.from_stat_time(st.st_ctime) + atime = st.st_atime + mtime = st.st_mtime + ctime = st.st_ctime result.st_atime = FSTime.from_stat_time(atime) result.st_mtime = FSTime.from_stat_time(mtime) result.st_ctime = FSTime.from_stat_time(ctime) -- 2.39.2