- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 248 for FLOAT64 (0.12 sec)
-
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: if cache.Info.LastUpdate.Equal(lastSave) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 16K bytes - Viewed (0) -
pkg/util/coverage/fake_test_deps.go
func (fakeTestDeps) SnapshotCoverage() {} //nolint:unused // U1000 see comment above, we know it's unused normally. func (fakeTestDeps) InitRuntimeCoverage() (mode string, tearDown func(string, string) (string, error), snapcov func() float64) { return "", nil, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 15:31:22 UTC 2024 - 3.5K bytes - Viewed (0) -
internal/dsync/drwmutex.go
tolerance := len(restClnts) / 2 isReadLock := false for !releaseAll(ctx, dm.clnt, tolerance, owner, &locks, isReadLock, restClnts, dm.Names...) { time.Sleep(time.Duration(dm.rng.Float64() * float64(dm.lockRetryMinInterval))) } } // RUnlock releases a read lock held on dm. // // It is a run-time error if dm is not locked on entry to RUnlock. func (dm *DRWMutex) RUnlock(ctx context.Context) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 19.7K bytes - Viewed (0) -
security/pkg/util/jwtutil.go
if claims["exp"] == nil { // The JWT doesn't have "exp", so it's always valid. E.g., the K8s first party JWT. return time.Time{}, nil } var expiration time.Time switch exp := claims["exp"].(type) { case float64: expiration = time.Unix(int64(exp), 0) case json.Number: v, _ := exp.Int64() expiration = time.Unix(v, 0) } return expiration, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 16:07:11 UTC 2024 - 3.2K bytes - Viewed (0) -
src/runtime/tracetime.go
return uint64(ticksPerSecond() / traceTimeDiv) } // Our clock is nanotime, so it's just the constant time division. // (trace clock units / nanoseconds) * (1e9 nanoseconds / 1 second) return uint64(1.0 / float64(traceTimeDiv) * 1e9) } // traceFrequency writes a batch with a single EvFrequency event. // // freq is the number of trace clock units per second. func traceFrequency(gen uintptr) { w := unsafeTraceWriter(gen, nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 3.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode.go
// Accept inputs that contain CBOR tags. TagsMd: cbor.TagsAllowed, // Decode type 0 (unsigned integer) as int64. // TODO: IntDecConvertSignedOrFail errors on overflow, JSON will try to fall back to float64. IntDec: cbor.IntDecConvertSignedOrFail, // Disable producing map[cbor.ByteString]interface{}, which is not acceptable for // decodes into interface{}. MapKeyByteString: cbor.MapKeyByteStringForbidden,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 14:03:36 UTC 2024 - 3.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/builtins.go
x.typ = Typ[UntypedFloat] } } toFloat(x) toFloat(y) } else { check.convertUntyped(x, Typ[Float64]) check.convertUntyped(y, Typ[Float64]) // x and y should be invalid now, but be conservative // and check below } } if x.mode == invalid || y.mode == invalid { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.1K bytes - Viewed (0) -
cmd/perf-tests.go
}(index) } time.Sleep(duration) xioutil.SafeClose(r.eof) wg.Wait() for { if globalNetPerfRX.ActiveConnections() == 0 { break } time.Sleep(time.Second) } rx := float64(globalNetPerfRX.RXSample) delta := globalNetPerfRX.firstToDisconnect.Sub(globalNetPerfRX.lastToConnect) if delta < 0 { rx = 0 errStr = "network disconnection issues detected" } globalNetPerfRX.Reset()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 11.8K bytes - Viewed (0) -
src/runtime/runtime.go
if nowTicks > ticks.startTicks && nowTime-ticks.startTime > minTimeForTicksPerSecond { // Perform the calculation with floats. We don't want to risk overflow. r = int64(float64(nowTicks-ticks.startTicks) * 1e9 / float64(nowTime-ticks.startTime)) if r == 0 { // Zero is both a sentinel value and it would be bad if callers used this as // a divisor. We tried out best, so just make it 1. r++ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 9.9K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/genericOps.go
{name: "Cvt32Uto64F", argLength: 1}, // uint32 -> float64, only used on 32-bit arch {name: "Cvt32Fto32U", argLength: 1}, // float32 -> uint32, only used on 32-bit arch {name: "Cvt64Fto32U", argLength: 1}, // float64 -> uint32, only used on 32-bit arch {name: "Cvt64Uto32F", argLength: 1}, // uint64 -> float32, only used on archs that has the instruction {name: "Cvt64Uto64F", argLength: 1}, // uint64 -> float64, only used on archs that has the instruction
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 15:49:20 UTC 2024 - 42.6K bytes - Viewed (0)