pub fn round(&mut self) {
        self.limits.memory = (self.limits.memory * 100.0 / (1024.0 * 1024.0 * 1024.0)).round() / 100.0;
        self.requests.memory = (self.requests.memory * 100.0 / (1024.0 * 1024.0 * 1024.0)).round() / 100.0;
        self.limits.cpu = (self.limits.cpu * 100.0).round() / 100.0;
        self.requests.cpu = (self.requests.cpu * 100.0).round() / 100.0;
    }
/// Convert to gigabytes and round to two decimals
Convert to gigabytes and round to two decimals
Convert to gigabytes and round to two decimals
pub fn round(&mut self) {
        self.limits.memory = (self.limits.memory * 100.0 / (1024.0 * 1024.0 * 1024.0)).round() / 100.0;
        self.requests.memory = (self.requests.memory * 100.0 / (1024.0 * 1024.0 * 1024.0)).round() / 100.0;
        self.limits.cpu = (self.limits.cpu * 100.0).round() / 100.0;
        self.requests.cpu = (self.requests.cpu * 100.0).round() / 100.0;
    }
pub fn round ( & mut self ) { self . limits . memory = ( self . limits . memory * 100.0 / ( 1024.0 * 1024.0 * 1024.0 ) ) . round ( ) / 100.0 ; self . requests . memory = ( self . requests . memory * 100.0 / ( 1024.0 * 1024.0 * 1024.0 ) ) . round ( ) / 100.0 ; self . limits . cpu = ( self . limits . cpu * 100.0 ) . round ( ) / 100.0 ; self . requests . cpu = ( self . requests . cpu * 100.0 ) . round ( ) / 100.0 ; }
Convert to gigabytes and round to two decimals
Convert to gigabytes and round to two decimals
&mut self
&mut self