From 02bea2ea60f714236903bfd15d2821c84ae5399e Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 18 Mar 2008 17:01:20 +0000 Subject: [PATCH] Record sensor unit information on short SDR records git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@808 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/ipmi.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm b/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm index 7a86a9077..2f42faa6c 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm @@ -3464,7 +3464,9 @@ sub initsdr { $sdr->B(comp2int(10,(($sdr_data[28] & 0b11000000) << 2) + $sdr_data[27])); $sdr->R_exp(comp2int(4,($sdr_data[30] & 0b11110000) >> 4)); $sdr->B_exp(comp2int(4,$sdr_data[30] & 0b00001111)); - } + } elsif ($sdr_type == 0x02) { + $sdr->sensor_units_1($sdr_data[21]); + } $sdr->id_string_type($sdr_data[48-$sdr_offset]);