Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for cpu_count (0.04 sec)

  1. scripts/docs.py

        """
        update_languages()
        shutil.rmtree(site_path, ignore_errors=True)
        langs = [lang.name for lang in get_lang_paths() if lang.is_dir()]
        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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 08 11:01:17 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  2. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 23:30:33 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top