- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 104 for perc (0.16 sec)
-
cmd/metrics-resource.go
if hm.CPU.CPUCount > 0 { perc := math.Round(ls.Load1*100*100/float64(hm.CPU.CPUCount)) / 100 updateResourceMetrics(cpuSubsystem, cpuLoad1Perc, perc, labels, false) perc = math.Round(ls.Load5*100*100/float64(hm.CPU.CPUCount)) / 100 updateResourceMetrics(cpuSubsystem, cpuLoad5Perc, perc, labels, false) perc = math.Round(ls.Load15*100*100/float64(hm.CPU.CPUCount)) / 100
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Apr 23 23:56:12 GMT 2024 - 17.4K bytes - Viewed (0) -
cmd/metrics-v3-system-drive.go
driveCount = "count" // iostat related driveReadsPerSec = "reads_per_sec" driveReadsKBPerSec = "reads_kb_per_sec" driveReadsAwait = "reads_await" driveWritesPerSec = "writes_per_sec" driveWritesKBPerSec = "writes_kb_per_sec" driveWritesAwait = "writes_await" drivePercUtil = "perc_util" ) var ( driveUsedBytesMD = NewGaugeMD(driveUsedBytes,
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Apr 25 22:01:31 GMT 2024 - 7.8K bytes - Viewed (0) -
cmd/metrics-v3-system-cpu.go
cpuMetrics, _ := c.cpuMetrics.Get() if cpuMetrics.LoadStat != nil { m.Set(sysCPULoad, cpuMetrics.LoadStat.Load1) perc := cpuMetrics.LoadStat.Load1 * 100 / float64(cpuMetrics.CPUCount) m.Set(sysCPULoadPerc, math.Round(perc*100)/100) } ts := cpuMetrics.TimesStat tot := ts.User + ts.System + ts.Idle + ts.Iowait + ts.Nice + ts.Steal cpuUserVal := math.Round(ts.User/tot*100*100) / 100
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Apr 23 23:56:12 GMT 2024 - 3K bytes - Viewed (0) -
cmd/metrics-v3-system-memory.go
package cmd import ( "context" ) const ( memTotal = "total" memUsed = "used" memFree = "free" memBuffers = "buffers" memCache = "cache" memUsedPerc = "used_perc" memShared = "shared" memAvailable = "available" ) var ( memTotalMD = NewGaugeMD(memTotal, "Total memory on the node") memUsedMD = NewGaugeMD(memUsed, "Used memory on the node")
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Wed Apr 17 05:10:25 GMT 2024 - 2.2K bytes - Viewed (0) -
cmd/perf-tests.go
Downloads: totalBytesRead, UploadTimes: uploadTimes, DownloadTimes: downloadTimes, DownloadTTFB: downloadTTFB, Error: retError, }, nil } // To collect RX stats during "mc support perf net" // RXSample holds the RX bytes for the duration between // the last peer to connect and the first peer to disconnect. // This is to improve the RX throughput accuracy. type netPerfRX struct {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Sun Jan 28 18:04:17 GMT 2024 - 11.3K bytes - Viewed (0) -
cmd/erasure.go
// at any given point in time. This allows different buckets to be scanned // in different order per erasure set, this wider spread is needed when // there are lots of buckets with different order of objects in them. r := rand.New(rand.NewSource(time.Now().UnixNano())) permutes := r.Perm(len(buckets)) // Add new buckets first for _, idx := range permutes { b := buckets[idx]
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Fri Apr 26 06:32:14 GMT 2024 - 16K bytes - Viewed (1) -
internal/disk/directio_darwin.go
// ODirectPlatform indicates if the platform supports O_DIRECT const ODirectPlatform = true // OpenFileDirectIO - bypass kernel cache. func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) { return directio.OpenFile(filePath, flag, perm) } // DisableDirectIO - disables directio mode. func DisableDirectIO(f *os.File) error { fd := f.Fd() _, err := unix.FcntlInt(fd, unix.F_NOCACHE, 0) return err }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Sat Jun 17 14:31:36 GMT 2023 - 1.4K bytes - Viewed (0) -
cmd/os_other.go
import ( "io" "os" "syscall" ) func access(name string) error { _, err := os.Lstat(name) return err } func osMkdirAll(dirPath string, perm os.FileMode, _ string) error { // baseDir is not honored in plan9 and solaris platforms. return os.MkdirAll(dirPath, perm) } // readDirFn applies the fn() function on each entries at dirPath, doesn't recurse into
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Wed Sep 13 15:14:36 GMT 2023 - 4K bytes - Viewed (0) -
internal/config/scanner/help.go
Type: "string", }, config.HelpKV{ Key: ExcessVersions, Description: `alert per object beyond this many versions` + defaultHelpPostfix(ExcessVersions), Optional: true, Type: "int", }, config.HelpKV{ Key: ExcessFolders, Description: `alert beyond this many sub-folders per folder in an erasure set` + defaultHelpPostfix(ExcessFolders), Optional: true, Type: "int",
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Mon Feb 12 07:41:53 GMT 2024 - 1.6K bytes - Viewed (0) -
cmd/xl-storage_unix_test.go
st, err := os.Stat(path.Join(tmpPath, testCase.volName)) if err != nil { t.Fatalf("Stat failed with %s expected to pass.", err) } // Get umask of the bits stored. currentUmask := 0o777 - uint32(st.Mode().Perm()) // Verify if umask is correct. if int(currentUmask) != testCase.expectedUmask { t.Fatalf("Umask check failed expected %d, got %d", testCase.expectedUmask, currentUmask) } }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Mon Jul 25 19:37:26 GMT 2022 - 3.4K bytes - Viewed (0)