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:
Mark Mentovai 2016-08-10 23:51:20 -04:00
parent 93485b2ccb
commit d8982a0859

View File

@ -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(&current_mhz, &max_mhz);
uint64_t current_hz;
uint64_t max_hz;
system_snapshot->CPUFrequency(&current_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,