Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for 50k (0.05 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/library/quantity_test.go

    		},
    		{
    			name:        "add_quantity",
    			expr:        `quantity("50k").add(quantity("20")) == quantity("50.02k")`,
    			expectValue: trueVal,
    		},
    		{
    			name:        "add_int",
    			expr:        `quantity("50k").add(20).isLessThan(quantity("50020"))`,
    			expectValue: falseVal,
    		},
    		{
    			name:        "sub_quantity",
    			expr:        `quantity("50k").sub(quantity("20")) == quantity("49.98k")`,
    			expectValue: trueVal,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/library/quantity.go

    //     <Quantity>.sub(<integer>) <quantity>
    //
    // Examples:
    //
    // quantity("50k").add("20k") == quantity("70k") // returns true
    // quantity("50k").add(20) == quantity("50020") // returns true
    // quantity("50k").sub("20k") == quantity("30k") // returns true
    // quantity("50k").sub(20000) == quantity("30k") // returns true
    // quantity("50k").add(20).sub(quantity("100k")).sub(-50000) == quantity("20") // returns true
    //
    // Comparisons
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    		},
    		{
    			name:                "add_quantity",
    			expr:                `quantity("50k").add(quantity("20")) == quantity("50.02k")`,
    			expectEstimatedCost: checker.CostEstimate{Min: 5, Max: 1844674407370955268},
    			expectRuntimeCost:   5,
    		},
    		{
    			name:                "sub_quantity",
    			expr:                `quantity("50k").sub(quantity("20")) == quantity("49.98k")`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/helpers_linux_test.go

    			period:   uint64(100000),
    		},
    		{
    			msg:      "200 input 20k quota and default period",
    			input:    int64(200),
    			expected: int64(20000),
    			period:   uint64(100000),
    		},
    		{
    			msg:      "500 input 50k quota and default period",
    			input:    int64(500),
    			expected: int64(50000),
    			period:   uint64(100000),
    		},
    		{
    			msg:      "1k input 100k quota and default period",
    			input:    int64(1000),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

    				`quantity("200M").compareTo(quantity("0.2G")) == 0`:                                                                      4,
    				`quantity("50k").add(quantity("20")) == quantity("50.02k")`:                                                              5,
    				`quantity("50k").sub(20) == quantity("49980")`:                                                                           4,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    		{"5n", decQuantity(5, -9, DecimalSI)},
    		{"4u", decQuantity(4, -6, DecimalSI)},
    		{"3m", decQuantity(3, -3, DecimalSI)},
    		{"9", decQuantity(9, 0, DecimalSI)},
    		{"8k", decQuantity(8, 3, DecimalSI)},
    		{"50k", decQuantity(5, 4, DecimalSI)},
    		{"7M", decQuantity(7, 6, DecimalSI)},
    		{"6G", decQuantity(6, 9, DecimalSI)},
    		{"5T", decQuantity(5, 12, DecimalSI)},
    		{"40T", decQuantity(4, 13, DecimalSI)},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/liveness/plive.go

    // then compact the set of argument bitmaps separately from the set of
    // local variable bitmaps. As of 2014-04-02, doing this to the godoc binary
    // is actually a net loss: we save about 50k of argument bitmaps but the new
    // PCDATA tables cost about 100k. So for now we keep using a single index for
    // both bitmap lists.
    func (lv *liveness) compact(b *ssa.Block) {
    	pos := 0
    	if b == lv.f.Entry {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				`quantity(self.val1).isLessThan(quantity("100M"))`,
    				`quantity(self.val2).isGreaterThan(quantity("50M"))`,
    				`quantity(self.val2).compareTo(quantity("0.2G")) == 0`,
    				`quantity("50k").add(quantity(self.val1)) == quantity("50.02k")`,
    				`quantity("50k").sub(quantity(self.val1)) == quantity("49980")`,
    				`quantity(self.val1).isInteger()`,
    			},
    		},
    		{name: "cost for extended lib calculated correctly: isSorted",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
Back to top