- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,588 for rduration (0.15 sec)
-
pkg/util/async/bounded_frequency_runner_test.go
return ft.now } func (ft *fakeTimer) Remaining() time.Duration { ft.lock.Lock() defer ft.lock.Unlock() return ft.timeout.Sub(ft.now) } func (ft *fakeTimer) Since(t time.Time) time.Duration { ft.lock.Lock() defer ft.lock.Unlock() return ft.now.Sub(t) } func (ft *fakeTimer) Sleep(d time.Duration) { // ft.advance grabs ft.lock ft.advance(d) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 15 09:36:26 UTC 2022 - 12.5K bytes - Viewed (0) -
src/os/timeout_test.go
// nextTimeout returns the next timeout to try after an operation took the given // actual duration with a timeout shorter than that duration. func nextTimeout(actual time.Duration) (next time.Duration, ok bool) { if actual >= maxDynamicTimeout { return maxDynamicTimeout, false } // Since the previous attempt took actual, we can't expect to beat that // duration by any significant margin. Try the next attempt with an arbitrary
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 17.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go
if !ok { if test.InitContext { t.Errorf("expected webhook duration to be initialized") } return } if !test.InitContext { t.Errorf("expected webhook duration to not be initialized") return } if wd.MutatingWebhookTracker.GetLatency() != test.ExpectedDurationSum { t.Errorf("expected admit duration %q got %q", test.ExpectedDurationSum, wd.MutatingWebhookTracker.GetLatency()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:52 UTC 2024 - 11K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/help.go
// It does this by making a shallow copy of non-pointer items in obj. // // If the items passed to fn are not retained, or are retained for the same duration, use EachListItem instead for memory efficiency. func EachListItemWithAlloc(obj runtime.Object, fn func(runtime.Object) error) error { return eachListItem(obj, fn, true) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 29 16:25:43 UTC 2023 - 9.8K bytes - Viewed (0) -
pkg/proxy/apis/config/validation/validation_test.go
UDPTimeout: metav1.Duration{Duration: 0 * time.Second}, }, expectedErrs: field.ErrorList{}, }, "IPVS Timeout > 0": { config: kubeproxyconfig.KubeProxyIPVSConfiguration{ SyncPeriod: metav1.Duration{Duration: 5 * time.Second}, TCPTimeout: metav1.Duration{Duration: 1 * time.Second}, TCPFinTimeout: metav1.Duration{Duration: 2 * time.Second}, UDPTimeout: metav1.Duration{Duration: 3 * time.Second},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 33.3K bytes - Viewed (0) -
src/flag/flag_test.go
float64Flag := f.Float64("float64", 0, "float64 value") durationFlag := f.Duration("duration", 5*time.Second, "time.Duration value") extra := "one-extra-argument" args := []string{ "-bool", "-bool2=true", "--int", "22", "--int64", "0x23", "-uint", "24", "--uint64", "25", "-string", "hello", "-float64", "2718e28", "-duration", "2m", extra, } if err := f.Parse(args); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:38:24 UTC 2024 - 22K bytes - Viewed (0) -
src/net/timeout_test.go
// nextTimeout returns the next timeout to try after an operation took the given // actual duration with a timeout shorter than that duration. func nextTimeout(actual time.Duration) (next time.Duration, ok bool) { if actual >= maxDynamicTimeout { return maxDynamicTimeout, false } // Since the previous attempt took actual, we can't expect to beat that // duration by any significant margin. Try the next attempt with an arbitrary
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 18:06:55 UTC 2024 - 30K bytes - Viewed (0) -
pkg/kubelet/apis/config/fuzzer/fuzzer.go
obj.Authentication.Webhook.CacheTTL = metav1.Duration{Duration: 2 * time.Minute} obj.Authorization.Mode = kubeletconfig.KubeletAuthorizationModeAlwaysAllow obj.Authorization.Webhook.CacheAuthorizedTTL = metav1.Duration{Duration: 5 * time.Minute} obj.Authorization.Webhook.CacheUnauthorizedTTL = metav1.Duration{Duration: 30 * time.Second} obj.Address = "0.0.0.0" obj.VolumeStatsAggPeriod = metav1.Duration{Duration: time.Minute}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 17:55:59 UTC 2024 - 5.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/backoff.go
return Jitter(duration, jitter), duration, 0 } return duration, duration, 0 } steps-- // calculate the next step's interval if factor != 0 { next = time.Duration(float64(duration) * factor) if cap > 0 && next > cap { next = cap steps = 0 } } else { next = duration } // add jitter for this step if jitter > 0 { duration = Jitter(duration, jitter) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 19:14:11 UTC 2023 - 16.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/plugin_test.go
if !ok { if test.InitContext { t.Errorf("expected webhook duration to be initialized") } return } if !test.InitContext { t.Errorf("expected webhook duration to not be initialized") return } if wd.MutatingWebhookTracker.GetLatency() != 0 { t.Errorf("expected admit duration to be equal to 0 got %q", wd.MutatingWebhookTracker.GetLatency()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:52 UTC 2024 - 11.9K bytes - Viewed (0)