mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 13:14:21 +01:00
Chore: IndentPPDirectives: BeforeHash [ci skip]
This commit is contained in:
@@ -7,17 +7,17 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#if __OpenBSD__ || __NetBSD__
|
||||
# include <sys/sched.h>
|
||||
#include <sys/sched.h>
|
||||
#endif
|
||||
|
||||
const char* ffGetCpuUsageInfo(FFlist* cpuTimes) {
|
||||
size_t neededLength = 0;
|
||||
#if __OpenBSD__ || __NetBSD__
|
||||
# ifdef KERN_CPTIME
|
||||
#ifdef KERN_CPTIME
|
||||
int ctls[] = { CTL_KERN, KERN_CPTIME };
|
||||
# else
|
||||
#else
|
||||
int ctls[] = { CTL_KERN, KERN_CP_TIME };
|
||||
# endif
|
||||
#endif
|
||||
if (sysctl(ctls, 2, NULL, &neededLength, NULL, 0) != 0) {
|
||||
return "sysctl({CTL_KERN, KERN_CPTIME}, 2, NULL) failed";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user