Skip to content

Commit 672ef0f

Browse files
committed
feat: hide specific version of UFS
only shows USF and hide the versions. Log: as above. Task: https://pms.uniontech.com/task-view-382543.html
1 parent 1b299ea commit 672ef0f

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

service/diskoperation/DeviceStorage.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -588,12 +588,8 @@ void DeviceStorage::getDiskInfoInterface(const QString &devicePath, QString &int
588588
if (model == file.readLine().simplified()) {
589589
QString spec_version = Utils::readContent("/sys/block/sdd/device/spec_version").trimmed();
590590
if (!spec_version.isEmpty()) {
591-
if (spec_version.contains("300")) {
592-
interface = "UFS 3.0";
593-
} else if (spec_version.contains("310")) {
594-
interface = "UFS 3.1";
595-
} else if (spec_version.contains("400")) {
596-
interface = "UFS 4.0";
591+
if (spec_version.contains("300") || spec_version.contains("310") || spec_version.contains("400")) {
592+
interface = "UFS";
597593
}
598594
}
599595
}

0 commit comments

Comments
 (0)