Skip to main content

quantity_mib

Function quantity_mib 

Source
pub fn quantity_mib(value: &str) -> Option<i64>
Expand description

A memory or disk quantity in whole MiB, rounded down.

Every suffix validate_quantity accepts is handled here. Reading only Gi and Mi and falling back for the rest would turn a declared 4G into a different size than the customer asked for, which for a ceiling means a sandbox larger than its bound.