major bug: fix retention counting
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user