Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for convertResourceMemoryToString (0.2 sec)

  1. pkg/api/v1/resource/helpers.go

    	c := int64(math.Ceil(float64(cpu.MilliValue()) / float64(divisor.MilliValue())))
    	return strconv.FormatInt(c, 10), nil
    }
    
    // convertResourceMemoryToString converts memory value to the format of divisor and returns
    // ceiling of the value.
    func convertResourceMemoryToString(memory *resource.Quantity, divisor resource.Quantity) (string, error) {
    	m := int64(math.Ceil(float64(memory.Value()) / float64(divisor.Value())))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 13:58:16 UTC 2023
    - 16.3K bytes
    - Viewed (0)
Back to top