From d9395958583c2a6e295ec05852512eae39fc6e16 Mon Sep 17 00:00:00 2001 From: Chikage0o0 <89348590+Chikage0o0@users.noreply.github.com> Date: Tue, 7 Nov 2023 16:25:00 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=97=B6=E9=97=B4=E4=B8=BA365=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/yande_popular/src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/yande_popular/src/db.rs b/plugins/yande_popular/src/db.rs index 41da908..f70d734 100644 --- a/plugins/yande_popular/src/db.rs +++ b/plugins/yande_popular/src/db.rs @@ -34,7 +34,7 @@ impl DB { let key = key?; let value = self.0.get(&key)?.unwrap(); let value = u64::from_be_bytes(value.as_ref().try_into().unwrap()); - if timestamp - value > 60 * 60 * 24 * 30 { + if timestamp - value > 60 * 60 * 24 * 365 { keys.push(key); } }