Skip to content

Commit ab278fc

Browse files
committed
[UI] Fix the Memory Controller window height
1 parent 5905720 commit ab278fc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

corefreq-cli.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -7118,15 +7118,17 @@ Window *CreateMemCtrl(unsigned long long id)
71187118
switch (Shm->Uncore.Unit.DDR_Ver) {
71197119
case 5:
71207120
case 4:
7121-
ctrlHeaders = 7;
7122-
channelHeaders = 5;
71237121
if (Shm->Proc.Features.Info.Vendor.CRC == CRC_INTEL)
71247122
{
7123+
ctrlHeaders = 7;
7124+
channelHeaders = 5;
71257125
pTimingFunc = Timing_DDR4;
71267126
}
71277127
else if ( (Shm->Proc.Features.Info.Vendor.CRC == CRC_AMD)
71287128
||(Shm->Proc.Features.Info.Vendor.CRC == CRC_HYGON) )
71297129
{
7130+
ctrlHeaders = 8;
7131+
channelHeaders = 6;
71307132
pTimingFunc = Timing_DDR4_Zen;
71317133
}
71327134
break;
@@ -7139,7 +7141,7 @@ Window *CreateMemCtrl(unsigned long long id)
71397141
break;
71407142
}
71417143
for (mc = 0; mc < Shm->Uncore.CtrlCount; mc++) {
7142-
rows += ctrlHeaders * Shm->Uncore.CtrlCount;
7144+
rows += ctrlHeaders;
71437145
rows += channelHeaders * Shm->Uncore.MC[mc].ChannelCount;
71447146
rows += Shm->Uncore.MC[mc].SlotCount * Shm->Uncore.MC[mc].ChannelCount;
71457147
}

0 commit comments

Comments
 (0)