Convert memory limit from gigabytes to bytes for Docker/Bollard API
(&self)
| 363 | impl ResolvedConfig { |
| 364 | /// Convert memory limit from gigabytes to bytes for Docker/Bollard API |
| 365 | pub fn memory_limit_bytes(&self) -> i64 { |
| 366 | (self.memory_gb * 1024.0 * 1024.0 * 1024.0) as i64 |
| 367 | } |
| 368 | |
| 369 | /// Convert CPU limit to microseconds per 100ms period for Docker/Bollard API |
| 370 | /// |
no outgoing calls
no test coverage detected