Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 170 for uniq (0.03 sec)

  1. internal/rest/client.go

    func exponentialBackoffWait(r *rand.Rand, unit, maxSleep time.Duration) func(uint) time.Duration {
    	if unit > time.Hour {
    		// Protect against integer overflow
    		panic("unit cannot exceed one hour")
    	}
    	return func(attempt uint) time.Duration {
    		if attempt > 16 {
    			// Protect against integer overflow
    			attempt = 16
    		}
    		// sleep = random_between(unit, min(cap, base * 2 ** attempt))
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  2. schema/serializer_test.go

    			want:    time.Unix(int64(int32Value), 0).UTC(),
    			wantErr: false,
    		},
    		{
    			name:    "int64",
    			value:   int64Value,
    			want:    time.Unix(int64Value, 0).UTC(),
    			wantErr: false,
    		},
    		{
    			name:    "uint",
    			value:   uintValue,
    			want:    time.Unix(int64(uintValue), 0).UTC(), //nolint:gosec
    			wantErr: false,
    		},
    		{
    			name:    "uint8",
    			value:   uint8Value,
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Oct 26 12:29:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/FailingCall.kt

    open class FailingCall : Call {
      override fun request(): Request = error("unexpected")
    
      override fun execute(): Response = error("unexpected")
    
      override fun enqueue(responseCallback: Callback): Unit = error("unexpected")
    
      override fun cancel(): Unit = error("unexpected")
    
      override fun isExecuted(): Boolean = error("unexpected")
    
      override fun isCanceled(): Boolean = error("unexpected")
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  4. internal/disk/stat_linux.go

    	st := syscall.Stat_t{}
    	err = syscall.Stat(path, &st)
    	if err != nil {
    		return Info{}, err
    	}
    	//nolint:unconvert
    	devID := uint64(st.Dev) // Needed to support multiple GOARCHs
    	info.Major = unix.Major(devID)
    	info.Minor = unix.Minor(devID)
    
    	// Check for overflows.
    	// https://github.com/minio/minio/issues/8035
    	// XFS can show wrong values at times error out
    	// in such scenarios.
    	if info.Free > info.Total {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testOr_t_present() {
        assertEquals("a", Optional.of("a").or("default"));
      }
    
      public void testOr_t_absent() {
        assertEquals("default", Optional.absent().or("default"));
      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testOr_supplier_present() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  6. schema/serializer.go

    		err = field.Set(ctx, dst, t.Time.Unix())
    	}
    
    	return
    }
    
    // Value implements serializer interface
    func (UnixSecondSerializer) Value(ctx context.Context, field *Field, dst reflect.Value, fieldValue interface{}) (result interface{}, err error) {
    	rv := reflect.ValueOf(fieldValue)
    	switch fieldValue.(type) {
    	case int, int8, int16, int32, int64:
    		result = time.Unix(rv.Int(), 0).UTC()
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Oct 26 12:29:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/MoreExecutors.java

          this.delegate = checkNotNull(delegate);
        }
    
        @Override
        public final boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
          return delegate.awaitTermination(timeout, unit);
        }
    
        @Override
        public final boolean isShutdown() {
          return delegate.isShutdown();
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 08 18:55:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Stopwatch.java

      @Override
      public String toString() {
        long nanos = elapsedNanos();
    
        TimeUnit unit = chooseUnit(nanos);
        double value = (double) nanos / NANOSECONDS.convert(1, unit);
    
        // Too bad this functionality is not exposed as a regular method call
        return Platform.formatCompact4Digits(value) + " " + abbreviate(unit);
      }
    
      private static TimeUnit chooseUnit(long nanos) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 08 18:55:33 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Queues.java

       * @param buffer where to add the transferred elements
       * @param numElements the number of elements to be waited for
       * @param timeout how long to wait before giving up, in units of {@code unit}
       * @param unit a {@code TimeUnit} determining how to interpret the timeout parameter
       * @return the number of elements transferred
       * @throws InterruptedException if interrupted while waiting
       */
      @CanIgnoreReturnValue
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Nov 04 17:24:58 UTC 2025
    - 18K bytes
    - Viewed (0)
  10. cmd/bucket-stats.go

    func (l *ReplicationLastHour) addsize(sz int64) {
    	minutes := time.Now().Unix() / 60
    	l.forwardTo(minutes)
    	winIdx := minutes % 60
    	l.Totals[winIdx].merge(AccElem{Total: minutes, Size: sz, N: 1})
    	l.LastMin = minutes
    }
    
    // Merge all recorded counts of last hour into one
    func (l *ReplicationLastHour) getTotal() AccElem {
    	var res AccElem
    	minutes := time.Now().Unix() / 60
    	l.forwardTo(minutes)
    	for _, elem := range l.Totals[:] {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 13.5K bytes
    - Viewed (0)
Back to top