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