Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ofTeraBytes (0.11 sec)

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

            expect:
            MemoryAmount.ofKiloBytes(23) == MemoryAmount.of('23k')
            MemoryAmount.ofMegaBytes(23) == MemoryAmount.of('23m')
            MemoryAmount.ofGigaBytes(23) == MemoryAmount.of('23g')
            MemoryAmount.ofTeraBytes(23) == MemoryAmount.of('23t')
    
        }
    
    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. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MemoryAmount.java

        }
    
        public static MemoryAmount ofGigaBytes(long gigaBytes) {
            long bytes = gigaBytes * GIGA_FACTOR;
            return new MemoryAmount(bytes, bytes + "g");
        }
    
        public static MemoryAmount ofTeraBytes(long teraBytes) {
            long bytes = teraBytes * TERA_FACTOR;
            return new MemoryAmount(bytes, bytes + "t");
        }
    
        public static MemoryAmount of(String notation) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top