mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 17:15:31 +00:00
validate item size only
This commit is contained in:
parent
380fd6476b
commit
11d41d8bf6
1 changed files with 1 additions and 4 deletions
|
|
@ -161,10 +161,7 @@ async fn main() -> Result<()> {
|
|||
}
|
||||
break;
|
||||
}
|
||||
if preload.max_filesize.is_some_and(|limit| {
|
||||
let sum :u64 = images.values().sum();
|
||||
sum + info.len > limit
|
||||
}) {
|
||||
if preload.max_filesize.is_some_and(|limit| info.len > limit) {
|
||||
if config.debug {
|
||||
println!(
|
||||
"\t\t\ttotal files size limit `{i}` reached!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue