pclose instead fclose

This commit is contained in:
2022-01-26 15:44:32 +01:00
parent c942f36e49
commit f2db85aa33
5 changed files with 10 additions and 8 deletions

View File

@ -51,7 +51,7 @@ void SMART::readSMARTData(Drive* drive)
SMART::parsePowerOnHours(sLine);
SMART::parsePowerCycle(sLine);
}
fclose(outputfileSmart);
pclose(outputfileSmart);
drive->setDriveSMARTData(modelFamily, modelName, serial, capacity, errorCount, powerOnHours, powerCycle); //wirte data in drive
}