From fa60934d609a4366b63ea85bc8770c6215f84cb0 Mon Sep 17 00:00:00 2001 From: Amneesh Singh Date: Mon, 17 Nov 2025 23:15:04 +0530 Subject: [PATCH] major bug: fix retention counting Signed-off-by: Amneesh Singh --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index cdc3dbe..522b828 100644 --- a/src/main.rs +++ b/src/main.rs @@ -383,6 +383,7 @@ async fn cleanup_directory() -> Result<(), std::io::Error> { * (1.0 - (meta.size() as f64 / CONFIG.max_filesize as f64)) .powf(std::f64::consts::E)) * 24.0 + * 60.0 * 60.0; if meta.is_file() && age.as_secs_f64() > retention {