- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 71 for is_zero (0.21 sec)
-
schema/serializer.go
case int64, int, uint, uint64, int32, uint32, int16, uint16: result = time.Unix(reflect.Indirect(rv).Int(), 0).UTC() case *int64, *int, *uint, *uint64, *int32, *uint32, *int16, *uint16: if rv.IsZero() { return nil, nil } result = time.Unix(reflect.Indirect(rv).Int(), 0).UTC() default: err = fmt.Errorf("invalid field type %#v for UnixSecondSerializer, only int, uint supported", v) } return
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Mar 18 08:28:46 UTC 2024 - 4.6K bytes - Viewed (0) -
security/pkg/credentialfetcher/plugin/gce.go
defer p.tokenMutex.RUnlock() if p.tokenCache == "" { return true } exp, err := util.GetExp(p.tokenCache) // When fails to get expiration time from token, always refresh the token. if err != nil || exp.IsZero() { return true } rotate := now.After(exp.Add(-gracePeriod)) gcecredLog.Debugf("credential expiration: %s, grace period: %s, should rotate: %t", exp.String(), gracePeriod.String(), rotate) return rotate
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 13:56:46 UTC 2024 - 4.7K bytes - Viewed (0) -
cmd/metrics-v3-system-process.go
func loadProcessMetrics(ctx context.Context, m MetricValues, c *metricsCache) error { m.Set(processGoRoutineTotal, float64(runtime.NumGoroutine())) if !globalBootTime.IsZero() { m.Set(processUptimeSeconds, time.Since(globalBootTime).Seconds()) } p, err := procfs.Self() if err != nil { metricsLogIf(ctx, err) } else { loadProcFSMetrics(ctx, p, m) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 26 16:07:23 UTC 2024 - 6.4K bytes - Viewed (0) -
cmd/metacache.go
fileNotFound bool `msg:"fnf"` status scanStatus `msg:"stat"` recursive bool `msg:"rec"` dataVersion uint8 `msg:"v"` } func (m *metacache) finished() bool { return !m.ended.IsZero() } // worthKeeping indicates if the cache by itself is worth keeping. func (m *metacache) worthKeeping() bool { if m == nil { return false } cache := m switch {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 5K bytes - Viewed (0) -
docs/debugging/s3-check-md5/main.go
for object := range s3Client.ListObjects(context.Background(), bucket, opts) { if object.Err != nil { log.Println("FAILED: LIST with error:", object.Err) continue } if !minModTime.IsZero() && object.LastModified.Before(minModTime) { continue } if object.IsDeleteMarker { log.Println("SKIPPED: DELETE marker object:", objFullPath(object)) continue }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Feb 17 01:15:57 UTC 2024 - 6.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/upload/run.go
config, configVersion, err := configstore.Download("latest", rcfg.Env) if err != nil { return nil, err } // Set the start time, if it is not provided. startTime := time.Now().UTC() if !rcfg.StartTime.IsZero() { startTime = rcfg.StartTime } return &uploader{ config: config, configVersion: configVersion, dir: dir, uploadServerURL: uploadURL, startTime: startTime,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:12:15 UTC 2024 - 5.5K bytes - Viewed (0) -
src/net/fd_windows.go
defer fd.pfd.SetWriteDeadline(noDeadline) if ctx.Err() != nil { fd.pfd.SetWriteDeadline(aLongTimeAgo) } else { if deadline, ok := ctx.Deadline(); ok && !deadline.IsZero() { fd.pfd.SetWriteDeadline(deadline) } done := make(chan struct{}) stop := context.AfterFunc(ctx, func() { // Force the runtime's poller to immediately give // up waiting for writability.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 16:46:10 UTC 2024 - 6.2K bytes - Viewed (0) -
src/net/pipe.go
if d.timer != nil && !d.timer.Stop() { <-d.cancel // Wait for the timer callback to finish and close cancel } d.timer = nil // Time is zero, then there is no deadline. closed := isClosedChan(d.cancel) if t.IsZero() { if closed { d.cancel = make(chan struct{}) } return } // Time in the future, setup a timer to cancel in the future. if dur := time.Until(t); dur > 0 { if closed {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 5.4K bytes - Viewed (0) -
pkg/log/default_test.go
o.JSONEncoding = true _ = Configure(o) var ti time.Time defaultScope.LogWithTime(InfoLevel, "Hello", ti) }) gotTime := getLogTime(t, stdoutLines[0]) if gotTime.IsZero() { t.Fatalf("Got %v, expected non-zero", gotTime) } })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 7.4K bytes - Viewed (0) -
pilot/pkg/config/memory/store.go
if !exists { tnow := time.Now() if cfg.ResourceVersion == "" { cfg.ResourceVersion = tnow.String() } // Set the creation timestamp, if not provided. if cfg.CreationTimestamp.IsZero() { cfg.CreationTimestamp = tnow } ns[cfg.Name] = cfg return cfg.ResourceVersion, nil } return "", errAlreadyExists } func (cr *store) Update(cfg config.Config) (string, error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 26 01:14:27 UTC 2023 - 6.3K bytes - Viewed (0)