find system drive
This commit is contained in:
@ -36,7 +36,7 @@ void SMART::readSMARTData(Drive *drive)
|
||||
sCMD.append(drive->getPath());
|
||||
const char *cpComand = sCMD.c_str();
|
||||
|
||||
// Logger::logThis()->info(cpComand);
|
||||
//Logger::logThis()->info(cpComand);
|
||||
|
||||
FILE *outputfileSmart = popen(cpComand, "r");
|
||||
size_t len = 0U; // length of found line
|
||||
@ -63,7 +63,7 @@ void SMART::readSMARTData(Drive *drive)
|
||||
if (status == 0U)
|
||||
{
|
||||
// Found S.M.A.R.T. data with this command
|
||||
// Logger::logThis()->info("Found S.M.A.R.T. data with this command");
|
||||
//Logger::logThis()->info("Found S.M.A.R.T. data with this command");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user