Browse Source

Try harder to decode the manufacturing date.

git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5705 7894878c-1315-0410-8ee3-d5d059ff63e0
tags/v3.0.3
Jean Delvare 17 years ago
parent
commit
f0249a02bb
  1. 1
      CHANGES
  2. 4
      eeprom/decode-dimms

1
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

4
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);
}

Loading…
Cancel
Save