- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for cpu_count (0.09 seconds)
-
scripts/docs.py
langs = [ lang.name for lang in get_lang_paths() if (lang.is_dir() and lang.name in SUPPORTED_LANGS) ] cpu_count = os.cpu_count() or 1 process_pool_size = cpu_count * 4 typer.echo(f"Using process pool size: {process_pool_size}") with Pool(process_pool_size) as p: p.map(build_lang, langs) @app.command()Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Dec 21 17:40:17 GMT 2025 - 16.9K bytes - Click Count (0) -
cmd/metrics-realtime.go
m.Errors = append(m.Errors, fmt.Sprintf("%s: Expected one CPU stat, got %d", byHostName, len(cm))) } } cpuCount, err := c.Counts(true) if err != nil { m.Errors = append(m.Errors, fmt.Sprintf("%s: %v (cpuCount)", byHostName, err.Error())) } else { m.Aggregated.CPU.CPUCount = cpuCount } loadStat, err := load.Avg() if err != nil {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 6.3K bytes - Click Count (0) -
cmd/metrics-resource.go
updateResourceMetrics(cpuSubsystem, cpuLoad15, ls.Load15, labels, false) 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)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 10 18:57:03 GMT 2025 - 17.2K bytes - Click Count (0)