- Sort Score
- Result 10 results
- Languages All
Results 11 - 18 of 18 for abs (0.22 sec)
-
internal/s3select/sql/value_test.go
wantOK: false, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { v := Value{ value: tt.fields.value, } got, got1 := v.bytesToFloat() diff := math.Abs(got - tt.want) if diff > floatCmpTolerance { t.Errorf("bytesToFloat() got = %v, want %v", got, tt.want) } if got1 != tt.wantOK { t.Errorf("bytesToFloat() got1 = %v, want %v", got1, tt.wantOK) }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Mar 06 16:56:10 GMT 2023 - 12.5K bytes - Viewed (0) -
cmd/endpoint.go
// /mnt/export1. So we go ahead and start the minio server in FS modes in these cases. if isHostIP(arg) { return ep, fmt.Errorf("invalid URL endpoint format: missing scheme http or https") } absArg, err := filepath.Abs(arg) if err != nil { return Endpoint{}, fmt.Errorf("absolute path failed %s", err) } u = &url.URL{Path: path.Clean(absArg)} isLocal = true } return Endpoint{ URL: u,
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun Apr 21 11:43:18 GMT 2024 - 34.1K bytes - Viewed (0) -
cmd/update.go
} // getModTime - get the file modification time of `path` func getModTime(path string) (t time.Time, err error) { // Convert to absolute path absPath, err := filepath.Abs(path) if err != nil { return t, fmt.Errorf("Unable to get absolute path of %s. %w", path, err) } // Version is minio non-standard, we will use minio binary's // ModTime as release time. fi, err := Stat(absPath)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Apr 24 04:08:47 GMT 2024 - 18.7K bytes - Viewed (0) -
cmd/erasure-server-pool-rebalance.go
return true } pfi := float64(poolStats.InitFreeSpace+poolStats.Bytes) / float64(poolStats.InitCapacity) // Mark pool rebalance as done if within 5% from PercentFreeGoal. if diff := math.Abs(pfi - r.PercentFreeGoal); diff <= 0.05 { r.PoolStats[poolIdx].Info.Status = rebalCompleted r.PoolStats[poolIdx].Info.EndTime = time.Now() return true } return false }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 26 19:29:28 GMT 2024 - 27.2K bytes - Viewed (0) -
api/go1.19.txt
pkg sync/atomic, type Pointer[$0 interface{}] struct #50860 pkg sync/atomic, type Uint32 struct #50860 pkg sync/atomic, type Uint64 struct #50860 pkg sync/atomic, type Uintptr struct #50860 pkg time, method (Duration) Abs() Duration #51414 pkg time, method (Time) ZoneBounds() (Time, Time) #50062 pkg crypto/x509, func ParseCRL //deprecated #50674 pkg crypto/x509, func ParseDERCRL //deprecated #50674
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Fri Dec 02 16:29:41 GMT 2022 - 17.9K bytes - Viewed (1) -
cmd/server-main.go
var globalLoggerOutput io.WriteCloser func initializeLogRotate(ctx *cli.Context) (io.WriteCloser, error) { lgDir := ctx.String("log-dir") if lgDir == "" { return os.Stderr, nil } lgDirAbs, err := filepath.Abs(lgDir) if err != nil { return nil, err } lgSize := ctx.Int("log-size") output, err := logger.NewDir(logger.Options{ Directory: lgDirAbs, MaximumFileSize: int64(lgSize),
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri May 03 15:54:03 GMT 2024 - 34.9K bytes - Viewed (1) -
cmd/common-main.go
return nil, fmt.Errorf("missing option must be provided") } return nil, fmt.Errorf("provided option cannot be empty") } // Disallow relative paths, figure out absolute paths. dirAbs, err := filepath.Abs(dir) if err != nil { return nil, err } err = mkdirAllIgnorePerm(dirAbs) if err != nil { return nil, fmt.Errorf("unable to create the directory `%s`: %w", dirAbs, err) }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat May 04 00:17:57 GMT 2024 - 35.8K bytes - Viewed (2) -
cmd/data-scanner.go
// Parameters are the same as in the constructor. func (d *dynamicSleeper) Update(factor float64, maxWait time.Duration) error { d.mu.Lock() defer d.mu.Unlock() if math.Abs(d.factor-factor) < 1e-10 && d.maxSleep == maxWait { return nil } // Update values and cycle waiting. xioutil.SafeClose(d.cycle) d.factor = factor d.maxSleep = maxWait d.cycle = make(chan struct{})
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri May 03 11:18:58 GMT 2024 - 47.6K bytes - Viewed (0)