major bug: fix retention counting

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2025-11-17 23:15:04 +05:30
parent 6fe202b1d1
commit fa60934d60

View File

@@ -383,6 +383,7 @@ async fn cleanup_directory() -> Result<(), std::io::Error> {
* (1.0 - (meta.size() as f64 / CONFIG.max_filesize as f64)) * (1.0 - (meta.size() as f64 / CONFIG.max_filesize as f64))
.powf(std::f64::consts::E)) .powf(std::f64::consts::E))
* 24.0 * 24.0
* 60.0
* 60.0; * 60.0;
if meta.is_file() && age.as_secs_f64() > retention { if meta.is_file() && age.as_secs_f64() > retention {