Skip to content

Commit

Permalink
round around 0.5
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Isakov <[email protected]>
  • Loading branch information
SergeySlice committed Oct 17, 2019
1 parent 902c497 commit 9d16f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rEFIt_UEFI/Platform/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ VOID GetCPUProperties (VOID)
if (Num && Denom) {
gCPUStructure.ARTFrequency = DivU64x32(MultU64x32(gCPUStructure.TSCCalibr, Denom), Num);
DBG(" Calibrated ARTFrequency: %lld\n", gCPUStructure.ARTFrequency);
UINT64 Stokg = DivU64x32(gCPUStructure.ARTFrequency + 99999, 100000);
UINT64 Stokg = DivU64x32(gCPUStructure.ARTFrequency + 49999, 100000);
gCPUStructure.ARTFrequency = MultU64x32(Stokg, 100000);
DBG(" Rounded ARTFrequency: %lld\n", gCPUStructure.ARTFrequency);
}
Expand Down

0 comments on commit 9d16f47

Please sign in to comment.