use HW_NCPUONLINE; already merged upstream but I forgot to commit to cvs
This commit is contained in:
parent
8777c2964a
commit
6693628fd9
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.22 2019/07/12 20:49:53 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.23 2020/02/24 07:26:59 jasper Exp $
|
||||
|
||||
COMMENT = CPU, RAM memory, and load monitor for use with tmux(1)
|
||||
|
||||
GH_ACCOUNT = thewtex
|
||||
GH_PROJECT = tmux-mem-cpu-load
|
||||
GH_TAGNAME = v3.4.0
|
||||
REVISION = 4
|
||||
REVISION = 5
|
||||
|
||||
CATEGORIES = sysutils
|
||||
|
||||
|
16
sysutils/tmux-mem-cpu-load/patches/patch-openbsd_cpu_cc
Normal file
16
sysutils/tmux-mem-cpu-load/patches/patch-openbsd_cpu_cc
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-openbsd_cpu_cc,v 1.1 2020/02/24 07:26:59 jasper Exp $
|
||||
|
||||
https://github.com/thewtex/tmux-mem-cpu-load/commit/2107ea84f10bd5aa260dd84365bb85b7eab1dfdf
|
||||
|
||||
Index: openbsd/cpu.cc
|
||||
--- openbsd/cpu.cc.orig
|
||||
+++ openbsd/cpu.cc
|
||||
@@ -27,7 +27,7 @@
|
||||
uint8_t get_cpu_count()
|
||||
{
|
||||
int cpu_count = 1; // default to 1
|
||||
- int mib[2] = { CTL_HW, HW_NCPU };
|
||||
+ int mib[2] = { CTL_HW, HW_NCPUONLINE };
|
||||
size_t len = sizeof( cpu_count );
|
||||
|
||||
if( sysctl( mib, 2, &cpu_count, &len, NULL, 0 ) < 0 )
|
Loading…
Reference in New Issue
Block a user