mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-07 11:59:57 +03:00
Caution if the defect list is not 0
This commit is contained in:
@@ -234,12 +234,16 @@ void MainWindow::updateUI()
|
||||
}
|
||||
}
|
||||
} else if (isScsi) {
|
||||
QJsonObject scsiErrorCounterLog = localObj.value("scsi_error_counter_log").toObject();
|
||||
QJsonObject scsiErrorCounterLog = localObj.value("scsi_error_counter_log").toObject();
|
||||
for (const QString& key : {"read", "write", "verify"}) {
|
||||
if (scsiErrorCounterLog.value(key).toObject().value("total_uncorrected_errors").toInt() != 0) {
|
||||
caution = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (localObj.value("scsi_grown_defect_list").toInt() != 0) {
|
||||
caution = true;
|
||||
}
|
||||
} else {
|
||||
JsonParser parser;
|
||||
nvmeSmartOrdered = parser.parse(allOutput);
|
||||
@@ -906,7 +910,6 @@ void MainWindow::addSCSIErrorCounterLogTable(const QJsonObject &scsiErrorLog)
|
||||
tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::addNvmeLogTable(const QVector<QPair<QString, int>>& nvmeLogOrdered)
|
||||
{
|
||||
QString warningMessage = "";
|
||||
|
||||
Reference in New Issue
Block a user