From 954d82ce6aef633ac82a3d44a52688ef6cb0d514 Mon Sep 17 00:00:00 2001 From: manatlan Date: Wed, 5 Jun 2024 06:16:35 +0000 Subject: [PATCH] fix cdate --- htagweb/fifo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htagweb/fifo.py b/htagweb/fifo.py index f71f8e9..4757b4e 100644 --- a/htagweb/fifo.py +++ b/htagweb/fifo.py @@ -34,8 +34,9 @@ def exists(self) -> bool: def dates(self) -> tuple: if self.exists(): - stat = os.stat(self.CLIENT_TO_SERVER_FIFO) + stat = os.stat(self.PID_FILE) cdate = datetime.fromtimestamp(stat.st_ctime) + stat = os.stat(self.CLIENT_TO_SERVER_FIFO) mdate = datetime.fromtimestamp(stat.st_mtime) return (cdate,mdate) else: