mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-07 11:59:57 +03:00
@@ -29,6 +29,8 @@ QVector<QPair<QString, int>> JsonParser::parse(const QString &json)
|
||||
if (found) {
|
||||
if (trimmedLine.contains("}")) {
|
||||
break;
|
||||
} else if (trimmedLine.contains("nsid")) { // smartctl now adds an nsid field, skip it for now
|
||||
continue;
|
||||
}
|
||||
qsizetype colonPos = trimmedLine.indexOf(":");
|
||||
if (colonPos != -1) {
|
||||
|
||||
@@ -974,6 +974,9 @@ void MainWindow::addNvmeLogTable(const QVector<QPair<QString, int>>& nvmeLogOrde
|
||||
|
||||
QString key = pair.first;
|
||||
QString name = key.replace("_", " ");
|
||||
if (name == "nsid") { // smartctl now adds an nsid field, skip it for now
|
||||
continue;
|
||||
}
|
||||
name = Utils.toTitleCase(name);
|
||||
|
||||
int rawInt = pair.second;
|
||||
|
||||
Reference in New Issue
Block a user