- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 46 for is_zero (0.13 sec)
-
src/net/netip/export_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 18:14:15 UTC 2024 - 730 bytes - Viewed (0) -
callbacks/update.go
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Mar 18 05:44:55 UTC 2024 - 9.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
} // Now returns the current local time. func Now() Time { return Time{time.Now()} } // IsZero returns true if the value is nil or time is zero. func (t *Time) IsZero() bool { if t == nil { return true } return t.Time.IsZero() } // Before reports whether the time instant t is before u. func (t *Time) Before(u *Time) bool { if t != nil && u != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 5.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
} // NowMicro returns the current local time. func NowMicro() MicroTime { return MicroTime{time.Now()} } // IsZero returns true if the value is nil or time is zero. func (t *MicroTime) IsZero() bool { if t == nil { return true } return t.Time.IsZero() } // Before reports whether the time instant t is before u. func (t *MicroTime) Before(u *MicroTime) bool { if t != nil && u != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 5.2K bytes - Viewed (0) -
logger/sql.go
switch v := v.(type) { case bool: vars[idx] = strconv.FormatBool(v) case time.Time: if v.IsZero() { vars[idx] = escaper + tmFmtZero + escaper } else { vars[idx] = escaper + v.Format(tmFmtWithMS) + escaper } case *time.Time: if v != nil { if v.IsZero() { vars[idx] = escaper + tmFmtZero + escaper } else { vars[idx] = escaper + v.Format(tmFmtWithMS) + escaper
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 5K bytes - Viewed (0) -
cmd/erasure-coding.go
// It only decodes the data blocks but does not verify them. // It returns an error if the decoding failed. func (e *Erasure) DecodeDataBlocks(data [][]byte) error { isZero := 0 for _, b := range data { if len(b) == 0 { isZero++ break } } if isZero == 0 || isZero == len(data) { // If all are zero, payload is 0 bytes. return nil } return e.encoder().ReconstructData(data) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Jan 31 02:11:45 UTC 2024 - 8.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/upload/findwork.go
// skip } else if strings.HasSuffix(fi.Name(), ".json") && mode == "on" { // Collect reports that are ready for upload. reportDate := u.uploadReportDate(fi.Name()) if !asof.IsZero() && !reportDate.IsZero() { // If both the mode asof date and the report date are present, do the // right thing... // // (see https://github.com/golang/go/issues/63142#issuecomment-1734025130)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:12:15 UTC 2024 - 3.4K bytes - Viewed (0) -
cmd/metrics-v3-cluster-usage.go
dataUsageInfo, err := c.dataUsageInfo.Get() if err != nil { metricsLogIf(ctx, err) return nil } // data usage has not captured any data yet. if dataUsageInfo.LastUpdate.IsZero() { return nil } var ( clusterSize uint64 clusterBuckets uint64 clusterObjectsCount uint64 clusterVersionsCount uint64 clusterDeleteMarkersCount uint64 )
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 6.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc
auto value = *attr.value_begin<APFloat>(); return value.isNegative() && value.isInfinity(); } else if (element_type.isInteger(1)) { auto value = *attr.value_begin<APInt>(); return value.isZero(); } else { auto value = *attr.value_begin<APInt>(); return element_type.isUnsignedInteger() ? value.isMinValue() : value.isMinSignedValue(); } } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
pkg/registry/flowcontrol/prioritylevelconfiguration/strategy_test.go
NominalConcurrencyShares: v, LimitResponse: flowcontrolv1.LimitResponse{ Type: flowcontrolv1.LimitResponseTypeReject}, }, }, } } v1beta3ObjFn := func(v int32, isZero bool) *flowcontrolv1beta3.PriorityLevelConfiguration { obj := &flowcontrolv1beta3.PriorityLevelConfiguration{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 26 20:55:50 UTC 2024 - 6.5K bytes - Viewed (0)