Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 884 for timer (0.02 sec)

  1. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            // Success should reset counter
            assertTrue(rateLimiter.checkAttempt(username, ip));
            rateLimiter.recordSuccess(username, ip);
    
            // Should be able to fail 3 more times before lockout
            for (int i = 0; i < 3; i++) {
                assertTrue(rateLimiter.checkAttempt(username, ip));
                rateLimiter.recordFailure(username, ip);
            }
    
            // Now should be locked out
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

      }
    
      /**
       * This test attempts to cause a future to wait for longer than it was requested to from a timed
       * get() call. As measurements of time are prone to flakiness, it tries to assert based on ranges
       * derived from observing how much time actually passed for various operations.
       */
      @SuppressWarnings("ThreadPriorityCheck")
      @AndroidIncompatible // Thread.suspend
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Iterators.java

       * is polled. This amortizes the sorting cost over the iteration and requires less memory than
       * sorting all elements at once.
       *
       * <p>Retrieving a single element takes approximately O(log(M)) time, where M is the number of
       * iterators. (Retrieving all elements takes approximately O(N*log(M)) time, where N is the total
       * number of elements.)
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 50.5K bytes
    - Viewed (0)
  4. cmd/metrics-v3-system-cpu.go

    	sysCPUAvgIOWaitMD = NewGaugeMD(sysCPUAvgIOWait, "Average CPU IOWait time")
    	sysCPULoadMD      = NewGaugeMD(sysCPULoad, "CPU load average 1min")
    	sysCPULoadPercMD  = NewGaugeMD(sysCPULoadPerc, "CPU load average 1min (percentage)")
    	sysCPUNiceMD      = NewGaugeMD(sysCPUNice, "CPU nice time")
    	sysCPUStealMD     = NewGaugeMD(sysCPUSteal, "CPU steal time")
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Jun 20 17:55:03 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. cmd/listen-notification-handlers.go

    		if pingInterval < 1 {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidQueryParams), r.URL)
    			return
    		}
    		t := time.NewTicker(time.Duration(pingInterval) * time.Second)
    		defer t.Stop()
    		emptyEventTicker = t.C
    	} else {
    		// Deprecated Apr 2023
    		t := time.NewTicker(500 * time.Millisecond)
    		defer t.Stop()
    		keepAliveTicker = t.C
    	}
    
    	enc := json.NewEncoder(w)
    	for {
    		select {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 6K bytes
    - Viewed (0)
  6. cmd/metrics-realtime.go

    		}
    		m.Aggregated.Mem.Info = madmin.GetMemInfo(GlobalContext, byHostName)
    	}
    	if types.Contains(madmin.MetricsCPU) {
    		m.Aggregated.CPU = &madmin.CPUMetrics{
    			CollectedAt: UTCNow(),
    		}
    		cm, err := c.Times(false)
    		if err != nil {
    			m.Errors = append(m.Errors, fmt.Sprintf("%s: %v (cpuTimes)", byHostName, err.Error()))
    		} else {
    			// not collecting per-cpu stats, so there will be only one element
    			if len(cm) == 1 {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Jun 01 05:16:24 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java

            verify(mockDeferredNdrBuffer, times(9)).enc_ndr_long(anyInt()); // 3 enc_ndr_long for each of 3 unicode strings
            verify(mockDeferredNdrBuffer, times(3)).enc_ndr_long(0);
            verify(mockDeferredNdrBuffer, times(3)).advance(anyInt());
            verify(mockDeferredNdrBuffer, times(4)).derive(anyInt()); // 3 for strings + 1 for guid
            verify(mockDeferredNdrBuffer, times(18)).enc_ndr_short(0); // 5+6+7 shorts with value 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 60.8K bytes
    - Viewed (0)
  8. logger/slog.go

    	if l.LogLevel >= Error {
    		l.Logger.ErrorContext(ctx, msg, slog.Any("data", data))
    	}
    }
    
    func (l *slogLogger) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) {
    	if l.LogLevel <= Silent {
    		return
    	}
    
    	elapsed := time.Since(begin)
    	sql, rows := fc()
    	fields := []slog.Attr{
    		slog.String("duration", fmt.Sprintf("%.3fms", float64(elapsed.Nanoseconds())/1e6)),
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 28 09:34:58 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java

    package jcifs.dcerpc.ndr;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.verifyNoMoreInteractions;
    import static org.mockito.Mockito.when;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    class NdrLongTest {
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/AllocInfoTest.java

            assertEquals(400L, mockAllocInfo.getFree(), "free space should match stubbed value");
            verify(mockAllocInfo, times(1)).getCapacity();
            verify(mockAllocInfo, times(1)).getFree();
        }
    
        /**
         * Parameterised test of capacity values, including edge cases such as
         * zero and negative capacities.
         */
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top