mirror of
https://github.com/YGGverse/btracker.git
synced 2026-04-01 01:25:33 +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;
|
break;
|
||||||
}
|
}
|
||||||
if preload.max_filesize.is_some_and(|limit| {
|
if preload.max_filesize.is_some_and(|limit| info.len > limit) {
|
||||||
let sum :u64 = images.values().sum();
|
|
||||||
sum + info.len > limit
|
|
||||||
}) {
|
|
||||||
if config.debug {
|
if config.debug {
|
||||||
println!(
|
println!(
|
||||||
"\t\t\ttotal files size limit `{i}` reached!"
|
"\t\t\ttotal files size limit `{i}` reached!"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue