Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for cpu_count (0.07 sec)

  1. 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()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 21 17:40:17 UTC 2025
    - 16.9K bytes
    - Viewed (0)
  2. 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 {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  3. 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)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 10 18:57:03 UTC 2025
    - 17.2K bytes
    - Viewed (0)
Back to top