Ticket #817: smartd-ticket817.patch
File smartd-ticket817.patch, 904 bytes (added by , 8 years ago) |
---|
-
smartd.cpp
3476 3476 PrintOut(LOG_INFO,"Device: %s, SMART health: passed\n", name); 3477 3477 3478 3478 // check temperature limits 3479 if (cfg.tempdiff || cfg.tempinfo || cfg.tempcrit || !cfg.attrlog_file.empty())3479 if (cfg.tempdiff || cfg.tempinfo || cfg.tempcrit) 3480 3480 CheckTemperature(cfg, state, currenttemp, triptemp); 3481 3481 3482 3482 // check if number of selftest errors has increased (note: may also DECREASE) … … 3511 3511 scsiDecodeNonMediumErrPage(tBuf, &state.scsi_nonmedium_error.nme); 3512 3512 state.scsi_nonmedium_error.found=1; 3513 3513 } 3514 // save temperature if not done by CheckTemperature() above 3515 if (!(cfg.tempdiff || cfg.tempinfo || cfg.tempcrit)) 3516 state.temperature = currenttemp; 3514 3517 } 3515 3518 CloseDevice(scsidev, name); 3516 3519 return 0;