mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 22:26:06 +00:00
minidump: Fix unit multiplier in variable names
There’s no behavior change, but two variables that store quantities in units of Hz were misnamed *_mhz. Change-Id: I8b7d9576a7638a4ee9789dc9d1050009ac009696 Reviewed-on: https://chromium-review.googlesource.com/368080 Reviewed-by: Scott Graham <scottmg@chromium.org>
This commit is contained in:
parent
93485b2ccb
commit
d8982a0859
@ -149,14 +149,14 @@ void MinidumpMiscInfoWriter::InitializeFromSnapshot(
|
||||
|
||||
const SystemSnapshot* system_snapshot = process_snapshot->System();
|
||||
|
||||
uint64_t current_mhz;
|
||||
uint64_t max_mhz;
|
||||
system_snapshot->CPUFrequency(¤t_mhz, &max_mhz);
|
||||
uint64_t current_hz;
|
||||
uint64_t max_hz;
|
||||
system_snapshot->CPUFrequency(¤t_hz, &max_hz);
|
||||
const uint32_t kHzPerMHz = static_cast<const uint32_t>(1E6);
|
||||
SetProcessorPowerInfo(
|
||||
InRangeCast<uint32_t>(current_mhz / kHzPerMHz,
|
||||
InRangeCast<uint32_t>(current_hz / kHzPerMHz,
|
||||
std::numeric_limits<uint32_t>::max()),
|
||||
InRangeCast<uint32_t>(max_mhz / kHzPerMHz,
|
||||
InRangeCast<uint32_t>(max_hz / kHzPerMHz,
|
||||
std::numeric_limits<uint32_t>::max()),
|
||||
0,
|
||||
0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user