[UI] Increased max ratio in HWP condition to avoid a zero frequency

This commit is contained in:
CyrIng
2024-11-09 09:30:40 +01:00
parent 976cd051f4
commit cb55c1b726
2 changed files with 4 additions and 8 deletions

View File

@@ -2907,8 +2907,7 @@ void Refresh_HWP_Cap_Freq(TGrid *grid, DATA_TYPE data[])
CFlop->Clock
);
const unsigned int maxRatio = MAXCLOCK_TO_RATIO(unsigned int,
CFlop->Clock.Hz);
const unsigned int maxRatio = 99;
if (StrLenFormat(length, item, grid->cell.length + 1,
"CPU #%-3u %7.2f (%3u) %7.2f (%3u) %7.2f (%3u) %7.2f (%3u)",
@@ -3190,8 +3189,7 @@ REASON_CODE SysInfoPerfCaps( Window *win,
CFlop->Clock
);
const unsigned int maxRatio = MAXCLOCK_TO_RATIO(unsigned int,
CFlop->Clock.Hz);
const unsigned int maxRatio = 99;
GridCall(
PUT(SCANKEY_NULL, HWP_Cap_Attr[bix], width, 3,

View File

@@ -4714,8 +4714,7 @@ void Refresh_HWP_Cap_Freq(TGrid *grid, DATA_TYPE data[])
CFlop->Clock
);
const unsigned int maxRatio = MAXCLOCK_TO_RATIO(unsigned int,
CFlop->Clock.Hz);
const unsigned int maxRatio = 99;
if (StrLenFormat(length, item, grid->cell.length + 1,
"CPU #%-3u %7.2f (%3u) %7.2f (%3u) %7.2f (%3u) %7.2f (%3u)",
@@ -5366,8 +5365,7 @@ REASON_CODE SysInfoPerfCaps( Window *win,
CFlop->Clock
);
const unsigned int maxRatio = MAXCLOCK_TO_RATIO(unsigned int,
CFlop->Clock.Hz);
const unsigned int maxRatio = 99;
GridCall(
PUT(SCANKEY_NULL, HWP_Cap_Attr[bix], width, 3,