mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 00:03:58 +01:00
Style: adds Cpp11BracedListStyle: Block
This commit is contained in:
@@ -14,9 +14,9 @@ const char* ffGetCpuUsageInfo(FFlist* cpuTimes) {
|
||||
size_t neededLength = 0;
|
||||
#if __OpenBSD__ || __NetBSD__
|
||||
# ifdef KERN_CPTIME
|
||||
int ctls[] = {CTL_KERN, KERN_CPTIME};
|
||||
int ctls[] = { CTL_KERN, KERN_CPTIME };
|
||||
# else
|
||||
int ctls[] = {CTL_KERN, KERN_CP_TIME};
|
||||
int ctls[] = { CTL_KERN, KERN_CP_TIME };
|
||||
# endif
|
||||
if (sysctl(ctls, 2, NULL, &neededLength, NULL, 0) != 0) {
|
||||
return "sysctl({CTL_KERN, KERN_CPTIME}, 2, NULL) failed";
|
||||
|
||||
@@ -49,7 +49,7 @@ static const char* getInfoByPerflib(FFlist* cpuTimes) {
|
||||
.Identifier = {
|
||||
// Processor Information GUID
|
||||
// HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\_V2Providers\{383487a6-3676-4870-a4e7-d45b30c35629}\{b4fc721a-0378-476f-89ba-a5a79f810b36}
|
||||
.CounterSetGuid = {0xb4fc721a, 0x0378, 0x476f, {0x89, 0xba, 0xa5, 0xa7, 0x9f, 0x81, 0x0b, 0x36}},
|
||||
.CounterSetGuid = { 0xb4fc721a, 0x0378, 0x476f, { 0x89, 0xba, 0xa5, 0xa7, 0x9f, 0x81, 0x0b, 0x36 } },
|
||||
.Size = sizeof(querySpec),
|
||||
.CounterId = PERF_WILDCARD_COUNTER, // https://learn.microsoft.com/en-us/windows/win32/perfctrs/using-the-perflib-functions-to-consume-counter-data
|
||||
.InstanceId = PERF_WILDCARD_COUNTER,
|
||||
|
||||
Reference in New Issue
Block a user