From 2d1b8392fe626684c86fae06b93cf8acd308d105 Mon Sep 17 00:00:00 2001 From: nchilaka Date: Fri, 15 May 2020 16:45:47 +0530 Subject: [Libfix] Assign correct atime, ctime, mtime values Changed get_file_stat function to assign correct key-value pairs for atime, mtime and ctime respectively. Previously, all timestamp keys were assigned to atime value Change-Id: I471ec341d1a213395a89f6c01315f3d0f2e976af Signed-off-by: nchilaka --- glustolibs-gluster/glustolibs/gluster/glusterfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'glustolibs-gluster/glustolibs/gluster') diff --git a/glustolibs-gluster/glustolibs/gluster/glusterfile.py b/glustolibs-gluster/glustolibs/gluster/glusterfile.py index a7ddba56b..c057400d5 100755 --- a/glustolibs-gluster/glustolibs/gluster/glusterfile.py +++ b/glustolibs-gluster/glustolibs/gluster/glusterfile.py @@ -260,8 +260,8 @@ def get_file_stat(host, fqpath): stat_data["uid"] = uid stat_data["gid"] = gid stat_data["atime"] = atime - stat_data["mtime"] = atime - stat_data["ctime"] = atime + stat_data["mtime"] = mtime + stat_data["ctime"] = ctime stat_data["epoch_atime"] = epoch_atime stat_data["epoch_mtime"] = epoch_mtime stat_data["epoch_ctime"] = epoch_ctime -- cgit