This commit is contained in:
parent
fb147764b5
commit
122cb90695
@ -96,11 +96,11 @@ class PddfChassis(ChassisBase):
|
|||||||
"""
|
"""
|
||||||
return self._eeprom.part_number_str()
|
return self._eeprom.part_number_str()
|
||||||
|
|
||||||
def get_serial(self):
|
def get_service_tag(self):
|
||||||
"""
|
"""
|
||||||
Retrieves the serial number of the chassis (Service tag)
|
Retrieves the service tag of the chassis
|
||||||
Returns:
|
Returns:
|
||||||
string: Serial number of chassis
|
string: Sevice tag of chassis
|
||||||
"""
|
"""
|
||||||
return self._eeprom.serial_str()
|
return self._eeprom.serial_str()
|
||||||
|
|
||||||
@ -123,7 +123,7 @@ class PddfChassis(ChassisBase):
|
|||||||
"""
|
"""
|
||||||
return self._eeprom.base_mac_addr()
|
return self._eeprom.base_mac_addr()
|
||||||
|
|
||||||
def get_serial_number(self):
|
def get_serial(self):
|
||||||
"""
|
"""
|
||||||
Retrieves the hardware serial number for the chassis
|
Retrieves the hardware serial number for the chassis
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ class PddfFan(FanBase):
|
|||||||
if output['status'].isalpha():
|
if output['status'].isalpha():
|
||||||
return 0
|
return 0
|
||||||
else:
|
else:
|
||||||
speed = int(output['status'])
|
speed = int(float(output['status']))
|
||||||
|
|
||||||
max_speed = int(self.plugin_data['PSU']['PSU_FAN_MAX_SPEED'])
|
max_speed = int(self.plugin_data['PSU']['PSU_FAN_MAX_SPEED'])
|
||||||
speed_percentage = round((speed*100)/max_speed)
|
speed_percentage = round((speed*100)/max_speed)
|
||||||
|
Loading…
Reference in New Issue
Block a user