show drive overview

This commit is contained in:
2020-08-07 12:07:29 +02:00
parent 1b0ea97ed1
commit 99273756da
5 changed files with 49 additions and 16 deletions

View File

@ -61,6 +61,22 @@ string Drive::sCapacityToText()
return "ERROR";
}
string Drive::sErrorCountToText(){
return to_string(getErrorCount());
}
string Drive::sPowerOnHoursToText(){
//TODO show in human readable format
return to_string(getPowerOnHours());
}
string Drive::sPowerCyclesToText(){
return to_string(getPowerCycles());
}
/**
* \brief set S.M.A.R.T. values in model
* \param string modelFamily