fix frozen and metric for checking iteration

This commit is contained in:
2022-08-23 23:20:50 +02:00
parent a656d0a9f4
commit bb69a59794
4 changed files with 5 additions and 3 deletions

View File

@ -167,7 +167,7 @@ void Drive::checkFrozenDrive(void)
time_t u32localtime;
time(&u32localtime);
if((u32localtime - this->u32Timestamp) >= (FROZEN_TIMEOUT*60) && (this->u32Timestamp > 0))
if((u32localtime - this->u32Timestamp) >= (FROZEN_TIMEOUT*60) && (this->u32Timestamp > 0) && (this->getTaskPercentage() < 100.0))
{
Logger::logThis()->warning("Drive Frozen: " + this->getModelName() + " " + this->getSerial());
this->bWasDeleteted = false;