- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 18 for parseDuration (0.17 seconds)
-
android/guava/src/com/google/common/cache/CacheBuilderSpec.java
spec.recordStats = true; } } /** Base class for parsing times with durations */ private abstract static class DurationParser implements ValueParser { abstract void parseDuration(CacheBuilderSpec spec, long duration, TimeUnit unit); @Override public void parse(CacheBuilderSpec spec, String key, @Nullable String value) { if (isNullOrEmpty(value)) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 18.2K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheBuilderSpec.java
spec.recordStats = true; } } /** Base class for parsing times with durations */ private abstract static class DurationParser implements ValueParser { abstract void parseDuration(CacheBuilderSpec spec, long duration, TimeUnit unit); @Override public void parse(CacheBuilderSpec spec, String key, @Nullable String value) { if (isNullOrEmpty(value)) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 18.2K bytes - Click Count (0) -
internal/config/api/api.go
return cfg, errors.New("invalid API max requests value") } clusterDeadline, err := time.ParseDuration(env.Get(EnvAPIClusterDeadline, kvs.GetWithDefault(apiClusterDeadline, DefaultKVS))) if err != nil { return cfg, err } cfg.ClusterDeadline = clusterDeadline remoteTransportDeadline, err := time.ParseDuration(env.Get(EnvAPIRemoteTransportDeadline, kvs.GetWithDefault(apiRemoteTransportDeadline, DefaultKVS)))
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 11.5K bytes - Click Count (1) -
internal/config/drive/drive.go
d := env.Get(EnvMaxDriveTimeout, env.Get(EnvMaxDriveTimeoutLegacy, env.Get(EnvMaxDiskTimeoutLegacy, kvs.GetWithDefault(MaxTimeout, DefaultKVS)))) if d == "" { cfg.MaxTimeout = 30 * time.Second } else { dur, _ := time.ParseDuration(d) if dur < time.Second { cfg.MaxTimeout = 30 * time.Second } else { cfg.MaxTimeout = getMaxTimeout(dur) } } return cfg, err } func getMaxTimeout(t time.Duration) time.Duration {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Nov 11 14:51:43 GMT 2024 - 3K bytes - Click Count (0) -
internal/config/batch/batch.go
cfg.ExpirationWorkersWait = 0 rduration, err := time.ParseDuration(env.Get(EnvReplicationWorkersWait, kvs.GetWithDefault(ReplicationWorkersWait, DefaultKVS))) if err != nil { return cfg, err } if rduration < 0 { return cfg, config.ErrInvalidBatchReplicationWorkersWait(nil) } kduration, err := time.ParseDuration(env.Get(EnvKeyRotationWorkersWait, kvs.GetWithDefault(KeyRotationWorkersWait, DefaultKVS)))
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri May 24 23:05:23 GMT 2024 - 4.7K bytes - Click Count (0) -
internal/logger/config.go
retryInterval, err := time.ParseDuration(retryIntervalCfgVal) if err != nil { return cfg, err } if retryInterval > time.Minute { return cfg, fmt.Errorf("maximum allowed value for retry interval is '1m': %s", retryIntervalCfgVal) } httpTimeoutCfgVal := getCfgVal(EnvLoggerWebhookHTTPTimeout, k, kv.Get(httpTimeout)) httpTimeout, err := time.ParseDuration(httpTimeoutCfgVal) if err != nil {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 18.7K bytes - Click Count (0) -
internal/config/scanner/scanner.go
maxWait = env.Get(EnvMaxWait, kvs.GetWithDefault(MaxWait, DefaultKVS)) } cfg.MaxWait, err = time.ParseDuration(maxWait) if err != nil { return err } cycle := env.Get(EnvCycle, kvs.GetWithDefault(Cycle, DefaultKVS)) if cycle == "" { cycle = "1m" } cfg.Cycle, err = time.ParseDuration(cycle) if err != nil { return err } return nil
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri May 24 23:05:23 GMT 2024 - 5.5K bytes - Click Count (0) -
internal/config/callhome/callhome.go
return cfg, err } cfg.Enable = env.Get(config.EnvMinIOCallhomeEnable, kvs.GetWithDefault(Enable, DefaultKVS)) == config.EnableOn cfg.Frequency, err = time.ParseDuration(env.Get(config.EnvMinIOCallhomeFrequency, kvs.GetWithDefault(Frequency, DefaultKVS))) return cfg, err
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri May 24 23:05:23 GMT 2024 - 2.6K bytes - Click Count (0) -
internal/config/heal/heal.go
if _, err = parseBitrotConfig(bitrot); err != nil { return cfg, fmt.Errorf("'heal:bitrotscan' value invalid: %w", err) } cfg.Bitrot = bitrot cfg.Sleep, err = time.ParseDuration(env.Get(EnvSleep, kvs.GetWithDefault(Sleep, DefaultKVS))) if err != nil { return cfg, fmt.Errorf("'heal:max_sleep' value invalid: %w", err) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Nov 04 19:06:02 GMT 2024 - 4.9K bytes - Click Count (0) -
cmd/signature-v4-parser.go
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Oct 10 18:57:35 GMT 2025 - 9.4K bytes - Click Count (0)