MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / max_cpu_count

Function max_cpu_count

src/execution/mod.rs:992–999  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

990}
991
992pub fn max_cpu_count() -> usize {
993 let max_cores = get_config().max_cores;
994 if max_cores == 0 {
995 num_cpus::get() - 1
996 } else {
997 max_cores
998 }
999}
1000
1001#[cfg(test)]
1002mod tests {

Callers 5

exploit_transformMethod · 0.85
execute_poolMethod · 0.85

Calls 1

get_configFunction · 0.85

Tested by 1