find system drive

This commit is contained in:
2024-06-02 09:31:55 +02:00
parent 282c294ae7
commit a665f8638e
3 changed files with 59 additions and 3 deletions

View File

@ -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;
}
}