Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,973 for Hour (0.18 sec)

  1. src/time/sleep_test.go

    			for i := range timers {
    				timers[i] = AfterFunc(Hour, nil)
    			}
    
    			for i := range timers {
    				timers[i].Stop()
    			}
    		}
    	})
    }
    
    func BenchmarkReset(b *testing.B) {
    	b.Run("impl=chan", func(b *testing.B) {
    		benchmark(b, func(pb *testing.PB) {
    			t := NewTimer(Hour)
    			for pb.Next() {
    				t.Reset(Hour)
    			}
    			t.Stop()
    		})
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  2. internal/logger/logonce.go

    	}
    	l.Unlock()
    
    	if shouldLog {
    		logIf(ctx, subsystem, err, errKind...)
    	}
    }
    
    // Cleanup the map every one hour so that the log message is printed again for the user to notice.
    func (l *logOnceType) cleanupRoutine() {
    	for {
    		time.Sleep(time.Hour)
    
    		l.Lock()
    		l.IDMap = make(map[string]onceErr)
    		l.Unlock()
    	}
    }
    
    // Returns logOnceType
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/apis/output/fuzzer/fuzzer.go

    	c.FuzzNoCustom(obj)
    
    	obj.Token = &bootstraptokenv1.BootstrapTokenString{ID: "uvxdac", Secret: "fq35fuyue3kd4gda"}
    	obj.Description = ""
    	obj.TTL = &metav1.Duration{Duration: time.Hour * 24}
    	obj.Usages = []string{"authentication", "signing"}
    	obj.Groups = []string{constants.NodeBootstrapTokenAuthGroup}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 07:01:20 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/meta/conditions_test.go

    import (
    	"reflect"
    	"testing"
    	"time"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    )
    
    func TestSetStatusCondition(t *testing.T) {
    	oneHourBefore := time.Now().Add(-1 * time.Hour)
    	oneHourAfter := time.Now().Add(1 * time.Hour)
    
    	tests := []struct {
    		name          string
    		conditions    []metav1.Condition
    		toAdd         metav1.Condition
    		expectChanged bool
    		expected      []metav1.Condition
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 22 01:13:33 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  5. cmd/data-scanner_test.go

    	obj := ObjectInfo{
    		Name:        "foo",
    		ModTime:     time.Now().Add(-31 * 24 * time.Hour),
    		Size:        100 << 20,
    		VersionID:   uuid.New().String(),
    		IsLatest:    true,
    		NumVersions: 4,
    	}
    	delMarker := ObjectInfo{
    		Name:         "foo-deleted",
    		ModTime:      time.Now().Add(-61 * 24 * time.Hour),
    		Size:         0,
    		VersionID:    uuid.New().String(),
    		IsLatest:     true,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 03 11:18:58 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/aes/cache_test.go

    				cache.set(key1, twi1)
    				clock.Step(time.Hour)
    				got := cache.get(info1, key1)
    				twiPtrEquals(t, twi1, got)
    				cacheLenEquals(t, cache, 1)
    			},
    		},
    		{
    			name: "expired get after GC",
    			test: func(t *testing.T, cache *simpleCache, clock *clocktesting.FakeClock) {
    				cache.set(key1, twi1)
    				clock.Step(time.Hour)
    				cacheLenEquals(t, cache, 1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  7. internal/s3select/sql/parser.go

    	Quantity  *Operand     `parser:" @@ \",\""`
    	Timestamp *PrimaryTerm `parser:" @@ \")\""`
    }
    
    // DateDiffFunc represents the DATE_DIFF function
    type DateDiffFunc struct {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  8. .teamcity/src/main/kotlin/promotion/PublishNightlyDocumentation.kt

            triggers {
                branch.nightlyPromotionTriggerHour?.let { triggerHour ->
                    schedule {
                        schedulingPolicy = daily {
                            this.hour = triggerHour
                        }
                        triggerBuild = always()
                        withPendingChangesOnly = true
                        enabled = branch.enableVcsTriggers
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 17:05:02 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. security/pkg/pki/util/generate_cert_test.go

    vbw9mUuRBuYCROUaNv2/TAkauxVPCYPq7Ow=
    -----END CERTIFICATE-----`
    )
    
    func TestGenCertKeyFromOptions(t *testing.T) {
    	// set "notBefore" to be one hour ago, this ensures the issued certificate to
    	// be valid as of now.
    	caCertNotBefore := now.Add(-time.Hour)
    	caCertTTL := 24 * time.Hour
    	host := "test_ca.com"
    
    	// Options to generate a CA cert with RSA.
    	rsaCaCertOptions := CertOptions{
    		Host:         host,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 06 12:48:53 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  10. src/time/zoneinfo.go

    	// Most calls to FixedZone have an unnamed zone with an offset by the hour.
    	// Optimize for that case by returning the same *Location for a given hour.
    	const hoursBeforeUTC = 12
    	const hoursAfterUTC = 14
    	hour := offset / 60 / 60
    	if name == "" && -hoursBeforeUTC <= hour && hour <= +hoursAfterUTC && hour*60*60 == offset {
    		unnamedFixedZonesOnce.Do(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top