Add missing N/A fallback on DIMM memory (#129)

This commit is contained in:
Cyrinux 2020-06-09 09:05:35 +02:00 committed by GitHub
parent 9dedbea47a
commit 41f0b04d00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,7 @@ class LSHW():
d["id"] = dimm.get("id")
d["serial"] = dimm.get("serial", 'N/A')
d["vendor"] = dimm.get("vendor", 'N/A')
d["product"] = dimm.get("product")
d["product"] = dimm.get("product", 'N/A')
d["size"] = dimm.get("size", 0) / 2 ** 20 / 1024
self.memories.append(d)