From eb782d3fd503445606850f998e8c188f7946691f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Baylac=20Jacqu=C3=A9?= Date: Mon, 19 Dec 2022 20:53:14 +0100 Subject: [PATCH] Bug: use mtime instead of atime as timestamp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit atime == last time a file has been accessed. mtime == last time a file has been modified. Facepalm on that oneā€¦ --- src/nixglhost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nixglhost.py b/src/nixglhost.py index 4a69c1d..b305f07 100755 --- a/src/nixglhost.py +++ b/src/nixglhost.py @@ -42,7 +42,7 @@ class ResolvedLib: self.fullpath: str = fullpath if size is None or last_modification is None: stat = os.stat(fullpath) - self.last_modification: float = stat.st_atime + self.last_modification: float = stat.st_mtime self.size: int = stat.st_size else: self.last_modification = last_modification