diff options
author | CyrIng <labs@cyring.fr> | 2021-09-07 20:20:25 +0200 |
---|---|---|
committer | CyrIng <labs@cyring.fr> | 2021-09-07 20:20:25 +0200 |
commit | ab278fc9fb01924397c7f19657fdf0772880dbed (patch) | |
tree | 080bb6ed3b0fe1ad4186d3ce43a343a243fc0846 | |
parent | 59057207f20995df0d6543f7d51f2e61962592a2 (diff) |
[UI] Fix the Memory Controller window height1.87.2
-rw-r--r-- | corefreq-cli.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/corefreq-cli.c b/corefreq-cli.c index c004b7f..5559d93 100644 --- a/corefreq-cli.c +++ b/corefreq-cli.c @@ -7118,15 +7118,17 @@ Window *CreateMemCtrl(unsigned long long id) switch (Shm->Uncore.Unit.DDR_Ver) { case 5: case 4: - ctrlHeaders = 7; - channelHeaders = 5; if (Shm->Proc.Features.Info.Vendor.CRC == CRC_INTEL) { + ctrlHeaders = 7; + channelHeaders = 5; pTimingFunc = Timing_DDR4; } else if ( (Shm->Proc.Features.Info.Vendor.CRC == CRC_AMD) ||(Shm->Proc.Features.Info.Vendor.CRC == CRC_HYGON) ) { + ctrlHeaders = 8; + channelHeaders = 6; pTimingFunc = Timing_DDR4_Zen; } break; @@ -7139,7 +7141,7 @@ Window *CreateMemCtrl(unsigned long long id) break; } for (mc = 0; mc < Shm->Uncore.CtrlCount; mc++) { - rows += ctrlHeaders * Shm->Uncore.CtrlCount; + rows += ctrlHeaders; rows += channelHeaders * Shm->Uncore.MC[mc].ChannelCount; rows += Shm->Uncore.MC[mc].SlotCount * Shm->Uncore.MC[mc].ChannelCount; } |