- Sort Score
- Num 10 results
- Language All
Results 211 - 220 of 711 for Sprintf (0.3 seconds)
-
tests/associations_many2many_test.go
if err != nil { t.Fatalf("open test connection failed, err: %+v", err) } count := 3 var languages []Language for i := 0; i < count; i++ { language := Language{Code: fmt.Sprintf("consurrent %d", i)} db.Create(&language) languages = append(languages, language) } user := User{} db.Create(&user) db.Preload("Languages").FirstOrCreate(&user) var wg sync.WaitGroupCreated: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Jun 10 13:05:19 GMT 2023 - 13.2K bytes - Click Count (0) -
internal/bucket/replication/replication_test.go
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 32.4K bytes - Click Count (0) -
cmd/api-response.go
w.Header().Set(xhttp.RetryAfter, "60") } switch err.Code { case "InvalidRegion": err.Description = fmt.Sprintf("Region does not match; expecting '%s'.", globalSite.Region()) case "AuthorizationHeaderMalformed": err.Description = fmt.Sprintf("The authorization header is malformed; the region is wrong; expecting '%s'.", globalSite.Region()) } // Similar check to http.checkWriteHeaderCode
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Oct 24 04:05:19 GMT 2025 - 35K bytes - Click Count (0) -
cmd/bucket-replication.go
defer func() { if rinfo.ReplicationStatus == replication.Completed && tgt.ResetID != "" && dobj.OpType == replication.ExistingObjectReplicationType { rinfo.ResyncTimestamp = fmt.Sprintf("%s;%s", UTCNow().Format(http.TimeFormat), tgt.ResetID) } }() if dobj.VersionID == "" && rinfo.PrevReplicationStatus == replication.Completed && dobj.OpType != replication.ExistingObjectReplicationType {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 118.2K bytes - Click Count (0) -
cmd/erasure-metadata_test.go
// non-tiered object require read quorum of EcM nonTieredTest(16, 4, 12), // non-tiered object with fewer than EcM in consensus nonTieredTest(16, 4, 11), } for i, test := range tests { t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) { if got := listObjectParities(test.metaArr, test.errs); !slices.Equal(got, test.parities) { t.Fatalf("Expected parities %v but got %v", test.parities, got) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 13.4K bytes - Click Count (0) -
cmd/data-usage-cache.go
} } // StringAll returns a detailed string representation of all entries in the cache. func (d *dataUsageCache) StringAll() string { // Remove bloom filter from print. s := fmt.Sprintf("info:%+v\n", d.Info) for k, v := range d.Cache { s += fmt.Sprintf("\t%v: %+v\n", k, v) } return strings.TrimSpace(s) } // String returns a human readable representation of the string. func (h dataUsageHash) String() string {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 34.7K bytes - Click Count (0) -
cmd/erasure-metadata.go
if !meta.Deleted && meta.Size != 0 { fmt.Fprintf(h, "%v+%v", meta.Erasure.DataBlocks, meta.Erasure.ParityBlocks) fmt.Fprintf(h, "%v", meta.Erasure.Distribution) } if meta.IsRemote() { // ILM transition fields fmt.Fprint(h, meta.TransitionStatus) fmt.Fprint(h, meta.TransitionTier) fmt.Fprint(h, meta.TransitionedObjName) fmt.Fprint(h, meta.TransitionVersionID) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 21.3K bytes - Click Count (0) -
internal/config/notify/legacy.go
Key: target.MqttBroker, Value: cfg.Broker.String(), }, config.KV{ Key: target.MqttTopic, Value: cfg.Topic, }, config.KV{ Key: target.MqttQoS, Value: fmt.Sprintf("%d", cfg.QoS), }, config.KV{ Key: target.MqttUsername, Value: cfg.User, }, config.KV{ Key: target.MqttPassword, Value: cfg.Password, }, config.KV{
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Apr 27 04:30:57 GMT 2025 - 13.3K bytes - Click Count (0) -
cmd/metacache-stream.go
json := jsoniter.ConfigCompatibleWithStandardLibrary v, err := json.Marshal(b) if err != nil { bugLogIf(context.Background(), err) // Unlikely return nil } return map[string]string{fmt.Sprintf("%s-metacache-part-%d", ReservedMetadataPrefixLower, b.n): string(v)} } // pastPrefix returns true if the given prefix is before start of the block. func (b metacacheBlock) pastPrefix(prefix string) bool {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed May 07 15:37:12 GMT 2025 - 19.5K bytes - Click Count (0) -
cmd/bucket-replication-metrics.go
} } func newXferStats() *XferStats { return &XferStats{ measure: newRateMeasurement(time.Now()), sma: newSMA(50), } } func (rx *XferStats) String() string { return fmt.Sprintf("curr=%f avg=%f, peak=%f", rx.curr(), rx.Avg, rx.Peak) } func (rx *XferStats) curr() float64 { if rx.measure == nil { return 0.0 } return rx.measure.getExpMovingAvgBytesPerSecond() }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Aug 15 12:04:40 GMT 2024 - 14.2K bytes - Click Count (0)