test(lesavka): mirror missing UVC payload cap in coverage
This commit is contained in:
parent
a7f73a82cc
commit
221240229c
@ -9,7 +9,9 @@ fn compute_payload_cap(bulk: bool) -> Option<PayloadCap> {
|
||||
});
|
||||
}
|
||||
|
||||
let mut pct = env_u32("LESAVKA_UVC_LIMIT_PCT", 95);
|
||||
let Some(mut pct) = env_u32_opt("LESAVKA_UVC_LIMIT_PCT") else {
|
||||
return None;
|
||||
};
|
||||
if pct == 0 {
|
||||
pct = 1;
|
||||
} else if pct > 100 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user