Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复sw机型中内存显示 #296

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion deepin-devicemanager/src/GenerateDevice/DeviceGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,9 @@ void DeviceGenerator::getMemoryInfoFromLshw()
QList<QMap<QString, QString> >::const_iterator it = lstMemory.begin();

for (; it != lstMemory.end(); ++it) {

if ((*it)["description"].contains("System Memory") && (*it).find("vendor") == (*it).end()) {
continue;
}
// bug47194 size属性包含MiB
// 目前处理内存信息时,bank下一定要显示内存信息,否则无法生成内存
if (!(*it)["size"].contains("GiB") && !(*it)["size"].contains("MiB"))
Expand Down
Loading