Skip to content

Commit ec026d6

Browse files
committed
add HW_NCPUONLINE sysctl (number of cpus being used) on OpenBSD
1 parent 14f6cf8 commit ec026d6

File tree

1 file changed

+1
-0
lines changed
  • src/unix/bsd/netbsdlike/openbsdlike

1 file changed

+1
-0
lines changed

src/unix/bsd/netbsdlike/openbsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ pub const CTL_MACHDEP: ::c_int = 7;
579579
pub const CTL_DDB: ::c_int = 9;
580580
pub const CTL_VFS: ::c_int = 10;
581581
pub const CTL_MAXID: ::c_int = 11;
582+
pub const HW_NCPUONLINE: ::c_int = 25;
582583
pub const KERN_OSTYPE: ::c_int = 1;
583584
pub const KERN_OSRELEASE: ::c_int = 2;
584585
pub const KERN_OSREV: ::c_int = 3;

0 commit comments

Comments
 (0)