mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-04-08 08:01:28 +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) {
|
} 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"}) {
|
for (const QString& key : {"read", "write", "verify"}) {
|
||||||
if (scsiErrorCounterLog.value(key).toObject().value("total_uncorrected_errors").toInt() != 0) {
|
if (scsiErrorCounterLog.value(key).toObject().value("total_uncorrected_errors").toInt() != 0) {
|
||||||
caution = true;
|
caution = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (localObj.value("scsi_grown_defect_list").toInt() != 0) {
|
||||||
|
caution = true;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
JsonParser parser;
|
JsonParser parser;
|
||||||
nvmeSmartOrdered = parser.parse(allOutput);
|
nvmeSmartOrdered = parser.parse(allOutput);
|
||||||
@@ -906,7 +910,6 @@ void MainWindow::addSCSIErrorCounterLogTable(const QJsonObject &scsiErrorLog)
|
|||||||
tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MainWindow::addNvmeLogTable(const QVector<QPair<QString, int>>& nvmeLogOrdered)
|
void MainWindow::addNvmeLogTable(const QVector<QPair<QString, int>>& nvmeLogOrdered)
|
||||||
{
|
{
|
||||||
QString warningMessage = "";
|
QString warningMessage = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user