diff --git a/CHANGES b/CHANGES index f67b192..5a2c783 100644 --- a/CHANGES +++ b/CHANGES @@ -9,6 +9,7 @@ SVN Fix decoding of SDR SDRAM bytes 12-14 Add side-by-side formatting option Add merged cells formatting option + Try harder to decode the manufacturing date decode-xeon: Delete i2c-stub-from-dump: Use udev settle to speed up initialization diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms index 3d2c9e4..f00fab1 100755 --- a/eeprom/decode-dimms +++ b/eeprom/decode-dimms @@ -1336,6 +1336,10 @@ sub manufacture_date($$) # Note that this heuristic will break in year 2080 return sprintf("%d%02X-W%02X", $year >= 0x80 ? 19 : 20, $year, $week); + # Fallback to binary format if it seems to make sense + } elsif ($year <= 99 && $week >= 1 && $week <= 53) { + return sprintf("%d%02d-W%02d", + $year >= 80 ? 19 : 20, $year, $week); } else { return sprintf("0x%02X%02X", $year, $week); }