Skip to content

Commit e578d07

Browse files
itsXuStdeepin-bot[bot]
authored andcommitted
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 da9fb90 commit e578d07

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
@@ -749,12 +749,8 @@ void DeviceStorage::getDiskInfoInterface(const QString &devicePath, QString &int
749749
QString spec_version = Utils::readContent("/sys/block/sdd/device/spec_version").trimmed();
750750
if (!spec_version.isEmpty()) {
751751
qDebug() << "spec_version is not empty";
752-
if (spec_version.contains("300")) {
753-
interface = "UFS 3.0";
754-
} else if (spec_version.contains("310")) {
755-
interface = "UFS 3.1";
756-
} else if (spec_version.contains("400")) {
757-
interface = "UFS 4.0";
752+
if (spec_version.contains("300") || spec_version.contains("310") || spec_version.contains("400")) {
753+
interface = "UFS";
758754
}
759755
}
760756
}

0 commit comments

Comments
 (0)