Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,108 for Amount (0.09 sec)

  1. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/MemoryAmountTest.groovy

    import spock.lang.Specification
    
    class MemoryAmountTest extends Specification {
    
        def "bytes #bytes"() {
            given:
            def amount = MemoryAmount.of(bytes)
    
            expect:
            amount.bytes == bytes
            amount.toString() == bytes.toString()
    
            where:
            bytes << [1L, Long.MAX_VALUE]
        }
    
        def "invalid bytes #bytes"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/shift_test.go

    	}
    	for _, tc := range tests {
    		fun := makeShiftExtensionFunc(c, tc.amount, tc.left, tc.right, tc.typ)
    		checkOpcodeCounts(t, fun.f, ops)
    	}
    }
    
    // makeShiftExtensionFunc generates a function containing:
    //
    //	(rshift (lshift (Const64 [amount])) (Const64 [amount]))
    //
    // This may be equivalent to a sign or zero extension.
    func makeShiftExtensionFunc(c *Conf, amount int64, lshift, rshift Op, typ *types.Type) fun {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 4K bytes
    - Viewed (0)
  3. pkg/kubelet/eviction/api/types.go

    	// SignalNodeFsAvailable is amount of storage available on filesystem that kubelet uses for volumes, daemon logs, etc.
    	SignalNodeFsAvailable Signal = "nodefs.available"
    	// SignalNodeFsInodesFree is amount of inodes available on filesystem that kubelet uses for volumes, daemon logs, etc.
    	SignalNodeFsInodesFree Signal = "nodefs.inodesFree"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/generator/DependencyTreeTest.groovy

            then:
            tree.getTransitiveChildClassIds(168) == [159, 163, 167, 51, 103, 155, 12, 64, 116]
        }
    
        private static int amount(int count, int level) {
            if (level == 0) {
                return 0
            }
            Math.pow(count, level) + amount(count, level - 1)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/ExponentialBackoff.java

        public static ExponentialBackoff<Signal> of(int amount, TimeUnit unit) {
            return of(amount, unit, Signal.SLEEP);
        }
    
        public static <T extends Signal> ExponentialBackoff<T> of(int amount, TimeUnit unit, T signal) {
            return new ExponentialBackoff<T>((int) TimeUnit.MILLISECONDS.convert(amount, unit), signal, SLOT_TIME);
        }
    
        public static ExponentialBackoff<Signal> of(int amount, TimeUnit unit, int slotTime, TimeUnit slotTimeUnit) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:49:35 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. internal/disk/stat_windows.go

    	// GetDiskFreeSpaceEx - https://msdn.microsoft.com/en-us/library/windows/desktop/aa364937(v=vs.85).aspx
    	// Retrieves information about the amount of space that is available on a disk volume,
    	// which is the total amount of space, the total amount of free space, and the total
    	// amount of free space available to the user that is associated with the calling thread.
    	GetDiskFreeSpaceEx = kernel32.NewProc("GetDiskFreeSpaceExW")
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

       * returns the expected data.
       *
       * @throws Throwable if the listener isn't called or if it resulted in a throwable or if the
       *     result doesn't match the expected value.
       */
      public void assertSuccess(Object expectedData) throws Throwable {
        // Verify that the listener executed in a reasonable amount of time.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 18:12:42 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/fixture/PrettyCalculatorSpec.groovy

    import org.gradle.performance.measure.Amount
    import org.gradle.performance.measure.Duration
    import spock.lang.Specification
    
    import static org.gradle.performance.results.PrettyCalculator.percentChange
    
    class PrettyCalculatorSpec extends Specification {
    
        def "knows percentage change"() {
            expect:
            percentChange(Amount.valueOf(current, Duration.SECONDS), Amount.valueOf(previous, Duration.SECONDS)) == percent
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/plan9x.go

    				extshift = "->"
    				amount = fmt.Sprintf("%d", a.amount)
    				return reg + extshift + amount
    			case ror:
    				extshift = "@>"
    				amount = fmt.Sprintf("%d", a.amount)
    				return reg + extshift + amount
    			}
    			if a.amount != 0 {
    				amount = fmt.Sprintf("<<%d", a.amount)
    			}
    		}
    		return reg + extshift + amount
    
    	case MemImmediate:
    		off := ""
    		base := ""
    		regno := uint16(a.Base) & 31
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 17K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    		ub := amount.UnscaledBig()
    		amount.SetUnscaledBig(ub.Mul(ub, numericSuffix))
    	}
    
    	// Cap at min/max bounds.
    	sign := amount.Sign()
    	if sign == -1 {
    		amount.Neg(amount)
    	}
    
    	// This rounds non-zero values up to the minimum representable value, under the theory that
    	// if you want some resources, you should get some resources, even if you asked for way too small
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top