Skip to content

Commit

Permalink
Six-core i5 CPUs are also rare
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Jul 31, 2021
1 parent 13b7624 commit eee93e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions RestrictEvents.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
CE8DA0CA2517DE74008C44E8 /* Frameworks */,
);
sourceTree = "<group>";
usesTabs = 1;
};
1C748C281C21952C0024EED2 /* Products */ = {
isa = PBXGroup;
Expand Down
8 changes: 4 additions & 4 deletions RestrictEvents/RestrictEvents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,12 @@ struct RestrictEventsPolicy {
cpuFindSize = getKernelVersion() >= KernelVersion::Catalina ? sizeof("\0" "Dual-Core Intel Core i5") : sizeof("\0" "Intel Core i5");
break;
case 4:
cpuFindPatch = "\0" "Quad-Core Intel Core i5";
cpuFindSize = sizeof("\0" "Quad-Core Intel Core i5");
cpuFindPatch = getKernelVersion() >= KernelVersion::Catalina ? "\0" "Quad-Core Intel Core i5" : "\0" "Intel Core i5";
cpuFindSize = getKernelVersion() >= KernelVersion::Catalina ? sizeof("\0" "Quad-Core Intel Core i5") : sizeof("\0" "Intel Core i5");
break;
case 6:
cpuFindPatch = "\0" "6-Core Intel Core i5";
cpuFindSize = sizeof("\0" "6-Core Intel Core i5");
cpuFindPatch = getKernelVersion() >= KernelVersion::Catalina ? "\0" "6-Core Intel Core i5" : "\0" "Intel Core i5";
cpuFindSize = getKernelVersion() >= KernelVersion::Catalina ? sizeof("\0" "6-Core Intel Core i5") : sizeof("\0" "Intel Core i5");
break;
case 8:
cpuFindPatch = "\0" "8-Core Intel Xeon W";
Expand Down

0 comments on commit eee93e4

Please sign in to comment.