From 37d84141e1d73299a9b582429d039e9a4212f43a Mon Sep 17 00:00:00 2001
From: Sakuya
Date: Sun, 27 Mar 2022 11:02:05 +0800
Subject: [PATCH] convert st_mtime to int
---
ppadb/sync_async/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ppadb/sync_async/__init__.py b/ppadb/sync_async/__init__.py
index 4f65540..012c354 100644
--- a/ppadb/sync_async/__init__.py
+++ b/ppadb/sync_async/__init__.py
@@ -20,7 +20,7 @@ def _get_src_info(src):
if not exists:
return exists, None, None
- timestamp = os.stat(src).st_mtime
+ timestamp = int(os.stat(src).st_mtime)
total_size = os.path.getsize(src)
return exists, timestamp, total_size