mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
arm64 ptr size fix
This commit is contained in:
@@ -105,7 +105,7 @@ uint64 CalculateCPUFreq()
|
||||
int retval = sysctlbyname("hw.cpufrequency_max", &freq_hz, &freq_size, NULL, 0);
|
||||
// MoeMod : TODO dont know how to get freq on Apple Silicon
|
||||
if(!freq_hz)
|
||||
freq_hz = 3200000;
|
||||
freq_hz = 3200000000;
|
||||
return freq_hz;
|
||||
#else
|
||||
// Try to open cpuinfo_max_freq. If the kernel was built with cpu scaling support disabled, this will fail.
|
||||
|
||||
Reference in New Issue
Block a user