Skip to content

Commit

Permalink
[CLI] Fixing ambiguous CPPC report: hardware vs firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring authored and CyrIng committed Nov 22, 2022
1 parent 0edb4e9 commit 04eb58c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions corefreq-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -4107,9 +4107,10 @@ REASON_CODE SysInfoPerfMon(Window *win, CUINT width, CELL_FUNC OutFunc)
if ( (RO(Shm)->Proc.Features.Info.Vendor.CRC == CRC_AMD)
|| (RO(Shm)->Proc.Features.Info.Vendor.CRC == CRC_HYGON) )
{
if ((bix |= RO(Shm)->Proc.Features.ACPI_CPPC) == 1)
if (RO(Shm)->Proc.Features.ACPI_CPPC == 1)
{
GridHover( PUT( BOXKEY_FMW_CPPC, attrib[bix], width, 2,
GridHover( PUT( BOXKEY_FMW_CPPC,
attrib[RO(Shm)->Proc.Features.ACPI_CPPC], width, 2,
"%s%.*s%s <%3s>", RSC(PERF_MON_CPPC).CODE(),
width - 19 - RSZ(PERF_MON_CPPC), hSpace,
RSC(PERF_LABEL_CPPC).CODE(), RSC(FMW).CODE() ),
Expand Down

0 comments on commit 04eb58c

Please sign in to comment.