- Sort Score
- Result 10 results
- Languages All
Results 591 - 600 of 883 for Seconds (0.04 sec)
-
tests/lru_test.go
t.Errorf("Expected key1 to exist, but it was evicted") } } func TestLRU_Add_Eviction(t *testing.T) { lru := lru.NewLRU[string, int](0, nil, time.Second*2) lru.Add("key1", 1) lru.Add("key2", 2) lru.Add("key3", 3) time.Sleep(time.Second * 3) if lru.Cap() != 0 { t.Errorf("Expected lru to be empty, but it was not") } } func BenchmarkLRU_Rand_NoExpire(b *testing.B) {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sun May 25 07:40:40 UTC 2025 - 10.4K bytes - Viewed (0) -
cmd/batch-handlers.go
if endpoint == "" { return nil } buf, err := json.Marshal(ri) if err != nil { return err } ctx, cancel := context.WithTimeout(ctx, 10*time.Second) defer cancel() req, err := http.NewRequestWithContext(ctx, http.MethodPost, endpoint, bytes.NewReader(buf)) if err != nil { return err } if token != "" {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 63.5K bytes - Viewed (0) -
cmd/object-handlers-common.go
func ifModifiedSince(objTime time.Time, givenTime time.Time) bool { // The Date-Modified header truncates sub-second precision, so // use mtime < t+1s instead of mtime <= t to check for unmodified. return !objTime.Before(givenTime.Add(1 * time.Second)) } // canonicalizeETag returns ETag with leading and trailing double-quotes removed, // if any present
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Jul 23 12:36:06 UTC 2025 - 15.2K bytes - Viewed (0) -
cmd/erasure.go
// This goroutine owns the cache. var saverWg sync.WaitGroup saverWg.Add(1) go func() { // Add jitter to the update time so multiple sets don't sync up. updateTime := 30*time.Second + time.Duration(float64(10*time.Second)*rand.Float64()) t := time.NewTicker(updateTime) defer t.Stop() defer saverWg.Done() var lastSave time.Time for { select { case <-t.C:
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 16.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/FileConfigService.java
}).createPageNumberList()); return fileConfigList; } /** * Deletes a file configuration and its associated authentication records. * This method removes the file configuration from the database and also * deletes all related file authentication entries. * * @param fileConfig the file configuration to be deleted */
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 7.4K bytes - Viewed (0) -
logger/logger.go
SlowThreshold: 200 * time.Millisecond, LogLevel: Warn, IgnoreRecordNotFoundError: false, Colorful: true, }) // Recorder logger records running SQL into a recorder instance Recorder = traceRecorder{Interface: Default, BeginAt: time.Now()} // RecorderParamsFilter defaults to no-op, allows to be run-over by a different implementation
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sun Jan 12 10:19:28 UTC 2025 - 6.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationRequestTest.java
// When & Then assertTrue(negotiationRequest.isSigningEnforced(), "First call should return true"); assertFalse(negotiationRequest.isSigningEnforced(), "Second call should return false"); assertTrue(negotiationRequest.isSigningEnforced(), "Third call should return true"); verify(negotiationRequest, times(3)).isSigningEnforced(); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
assertEquals((byte) 0xCD, bufferData[startIndex + alignmentBytes], "Least significant byte should be first"); assertEquals((byte) 0x00, bufferData[startIndex + alignmentBytes + 1], "Most significant byte should be second"); } /** * When given a buffer with sufficient length, decode performs * the inverse of encode. */ @Test void decodeFromEncodedBuffer() throws NdrException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
cmd/admin-server-info.go
// Only proceed for local endpoints network[nodeName] = string(madmin.ItemOnline) continue } _, present := network[nodeName] if !present { if err := isServerResolvable(endpoint, 5*time.Second); err == nil { network[nodeName] = string(madmin.ItemOnline) } else { if xnet.IsNetworkOrHostDown(err, false) { network[nodeName] = string(madmin.ItemOffline)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 4.9K bytes - Viewed (1) -
tests/generics_test.go
} if count != 2 { t.Errorf("expected 2 records, got %d", count) } if err := tx.Rollback().Error; err != nil { t.Fatalf("failed to rollback transaction: %v", err) } count2, err := gorm.G[User](DB).Where("name like ?", "TestGenericsTransaction%").Count(ctx, "*") if err != nil { t.Fatalf("Count failed: %v", err) } if count2 != 0 { t.Errorf("expected 0 records after rollback, got %d", count2) } }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 28K bytes - Viewed (0)