이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
로그인
rinri
/
slstatus
보기
1
좋아요
0
포크
0
코드
이슈
0
풀 리퀘스트
0
릴리즈
0
위키
활동
소스 검색
cpu: Use uint64_t on OpenBSD
master
Aaron Marcher
5 년 전
부모
609ef3aa1f
커밋
b792b7ab69
1개의 변경된 파일
과
3개의 추가작업
그리고
2개의 파일을 삭제
분할 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-2
components/cpu.c
+ 3
- 2
components/cpu.c
파일 보기
@@ -45,6 +45,7 @@
(a[0] + a[1] + a[2] + a[3] + a[4] + a[5] + a[6]))));
}
#elif defined(__OpenBSD__)
#include <inttypes.h>
#include <sys/param.h>
#include <sys/sched.h>
#include <sys/sysctl.h>
@@ -73,8 +74,8 @@
cpu_perc(void)
{
int mib[2];
static
long in
t a[CPUSTATES];
long in
t b[CPUSTATES];
static
uint64_
t a[CPUSTATES];
uint64_
t b[CPUSTATES];
size_t size;
mib[0] = CTL_KERN;
쓰기
미리보기
불러오는 중...
취소
저장