summaryrefslogtreecommitdiff
path: root/indra/llcommon/llprocessor.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2025-08-24 14:29:24 -0700
committerGitHub <noreply@github.com>2025-08-24 14:29:24 -0700
commitf25c2a56c0c8079163e9ef18f6a9e590341b1e1a (patch)
treea3fa4bd843f919575aaddf0928eff38bae7d7b04 /indra/llcommon/llprocessor.cpp
parent96023976f5af0b9af8e8d066d9ad4eea213f53ee (diff)
parent375158eb6450a0291ec1a0f55714fbf19a8287eb (diff)
Merge pull request #4602 from secondlife/rider/release_to_luaedit
Rider/release to luaedit
Diffstat (limited to 'indra/llcommon/llprocessor.cpp')
-rw-r--r--indra/llcommon/llprocessor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llcommon/llprocessor.cpp b/indra/llcommon/llprocessor.cpp
index a783e18e49..2e94651083 100644
--- a/indra/llcommon/llprocessor.cpp
+++ b/indra/llcommon/llprocessor.cpp
@@ -638,6 +638,14 @@ public:
{
getCPUIDInfo();
uint64_t frequency = getSysctlInt64("hw.cpufrequency");
+ if (!frequency)
+ {
+ auto tbfrequency = getSysctlInt64("hw.tbfrequency");
+ struct clockinfo clockrate;
+ auto clockrate_len = sizeof(clockrate);
+ if (!sysctlbyname("kern.clockrate", &clockrate, &clockrate_len, NULL, 0))
+ frequency = tbfrequency * clockrate.hz;
+ }
setInfo(eFrequency, (F64)frequency / (F64)1000000);
}