Skip to content

Commit

Permalink
Fix Display of #50
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl committed Sep 29, 2021
1 parent 5250689 commit 41b5528
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,9 @@ Func Main(ByRef $aResults, ByRef $aOutput)
GUICtrlSetData($hCheck[0][2], _Translate($iMUI, "64 Bit CPU") & @CRLF & _Translate($iMUI, "64 Bit OS"))
Case Else
Switch $aResults[0][1]
Case 0
_GUICtrlSetState($hCheck[0][0], $iUnsure)
GUICtrlSetData($hCheck[0][2], _Translate($iMUI, "Check Skipped"))
Case 1
_GUICtrlSetState($hCheck[0][0], $iWarn)
GUICtrlSetData($hCheck[0][2], _Translate($iMUI, "64 Bit CPU") & @CRLF & _Translate($iMUI, "32 bit OS"))
Expand Down Expand Up @@ -566,7 +569,12 @@ Func Main(ByRef $aResults, ByRef $aOutput)
#Region ; _CPUSpeedCheck()
If $aResults[4][0] Then
_GUICtrlSetState($hCheck[4][0], $iPass)
GUICtrlSetData($hCheck[4][2], _GetCPUInfo(3) & " MHz")
Switch $aResults[4][2]
Case 0
GUICtrlSetData($hCheck[4][2], _GetCPUInfo(3) & " MHz")
Case 1
GUICtrlSetData($hCheck[4][2], RegRead("HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0", "~MHz") & " MHz")
EndSwitch
Else
_GUICtrlSetState($hCheck[4][0], $iFail)
GUICtrlSetData($hCheck[4][2], _GetCPUInfo(3) & " MHz")
Expand Down
4 changes: 2 additions & 2 deletions includes/_Checks.au3
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ EndFunc ;==>_CPUCoresCheck
Func _CPUSpeedCheck()
Select
Case _GetCPUInfo(3) >= 1000
ContinueCase
Return SetError(0, 0, True)
Case RegRead("HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0", "~MHz") >= 1000
Return True
Return SetError(0, 1, True)
Case Else
Return False
EndSelect
Expand Down

0 comments on commit 41b5528

Please sign in to comment.