Skip to content

Commit

Permalink
[CC-131] Hide dataWidth and totalWidth together with speed when there…
Browse files Browse the repository at this point in the history
…'s no DIMM
  • Loading branch information
dora-zhang committed Jan 30, 2024
1 parent 6b1739e commit 954be76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hwloc/topology-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -7321,7 +7321,7 @@ static int dmi_memory_device_total_width(char *buffer, size_t len,
{
uint16_t code = *(uint16_t *)(header->tot_width);

if (code == 0xFFFF)
if (code == 0xFFFF || code == 0)
return -1;

snprintf(buffer, len, "%u", code);
Expand All @@ -7333,7 +7333,7 @@ static int dmi_memory_device_data_width(char *buffer, size_t len,
{
uint16_t code = *(uint16_t *)(header->dat_width);

if (code == 0xFFFF)
if (code == 0xFFFF || code == 0)
return -1;

snprintf(buffer, len, "%u", code);
Expand Down

0 comments on commit 954be76

Please sign in to comment.