show HDD warnings based on sectors
This commit is contained in:
+22
-1
@@ -140,6 +140,21 @@ uint32_t Drive::getTemperature(void)
|
||||
return sSmartData.u32Temperature;
|
||||
}
|
||||
|
||||
uint32_t Drive::getReallocatedSectors(void)
|
||||
{
|
||||
return sSmartData.u32ReallocatedSectors;
|
||||
}
|
||||
|
||||
uint32_t Drive::getPendingSectors(void)
|
||||
{
|
||||
return sSmartData.u32PendingSectors;
|
||||
}
|
||||
|
||||
uint32_t Drive::getUncorrectableSectors(void)
|
||||
{
|
||||
return sSmartData.u32UncorrectableSectors;
|
||||
}
|
||||
|
||||
string Drive::sCapacityToText()
|
||||
{
|
||||
char acBuffer[16];
|
||||
@@ -226,7 +241,10 @@ void Drive::setDriveSMARTData(string modelFamily,
|
||||
uint32_t errorCount,
|
||||
uint32_t powerOnHours,
|
||||
uint32_t powerCycle,
|
||||
uint32_t temperature)
|
||||
uint32_t temperature,
|
||||
uint32_t reallocatedSectors,
|
||||
uint32_t pendingSectors,
|
||||
uint32_t uncorrectableSectors)
|
||||
{
|
||||
this->sSmartData.sModelFamily = modelFamily;
|
||||
this->sSmartData.sModelName = modelName;
|
||||
@@ -236,6 +254,9 @@ void Drive::setDriveSMARTData(string modelFamily,
|
||||
this->sSmartData.u32PowerOnHours = powerOnHours;
|
||||
this->sSmartData.u32PowerCycles = powerCycle;
|
||||
this->sSmartData.u32Temperature = temperature;
|
||||
this->sSmartData.u32ReallocatedSectors = reallocatedSectors;
|
||||
this->sSmartData.u32PendingSectors = pendingSectors;
|
||||
this->sSmartData.u32UncorrectableSectors = uncorrectableSectors;
|
||||
}
|
||||
|
||||
void Drive::setTimestamp()
|
||||
|
||||
Reference in New Issue
Block a user