Skip to content

Commit

Permalink
fix: 修复sw机型中内存显示
Browse files Browse the repository at this point in the history
 修复sw机型中内存显示

Log:  修复sw机型中内存显示

Bug: https://pms.uniontech.com/bug-view-219863.html
  • Loading branch information
shuaijie authored and deepin-bot[bot] committed Mar 7, 2024
1 parent 8e43622 commit c7fcd29
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit c7fcd29

Please sign in to comment.