Skip to content

Commit

Permalink
Parse reads and writes for SCSI devices
Browse files Browse the repository at this point in the history
  • Loading branch information
edisionnano committed Aug 6, 2024
1 parent 110d288 commit 9aeca5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 373,12 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal
bool isScsi = (protocol == "SCSI");

if (isScsi) {
QJsonObject scsiErrorCounterLog = localObj.value("scsi_error_counter_log").toObject();
modelName = localObj["scsi_model_name"].toString();
powerCycleCountInt = localObj["scsi_start_stop_cycle_counter"].toObject().value("accumulated_load_unload_cycles").toInt(-1);
powerCycleCountInt = localObj["scsi_start_stop_cycle_counter"].toObject().value("accumulated_load_unload_cycles").toInt();
firmwareVersion = localObj["scsi_revision"].toString("----");
totalReadsInt = scsiErrorCounterLog.value("read").toObject().value("gigabytes_processed").toString().split(",").first().toInt();
totalWritesInt = scsiErrorCounterLog.value("write").toObject().value("gigabytes_processed").toString().split(",").first().toInt();
}

bool nvmeHasSelfTest = false;
Expand Down

0 comments on commit 9aeca5c

Please sign in to comment.