From bc784b1cbc9a3eba6a83a00fccdcc838693639f0 Mon Sep 17 00:00:00 2001 From: Chikage Date: Fri, 13 Oct 2023 13:00:52 +0900 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=95=B0=E6=8D=AE=E5=BA=93=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=B8=85=E7=90=86=E6=94=B9=E8=87=B3=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=9C=88?= 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 d4e94c4..42dc533 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 * 7 { + if timestamp - value > 60 * 60 * 24 * 30 { keys.push(key); } }