git://git.onelab.eu
/
bootmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
quick fix for broken build
[bootmanager.git]
/
source
/
systeminfo.py
diff --git
a/source/systeminfo.py
b/source/systeminfo.py
index
71923a9
..
1c921a2
100755
(executable)
--- a/
source/systeminfo.py
+++ b/
source/systeminfo.py
@@
-52,6
+52,9
@@
LSPCI_CMD= "/sbin/lspci -nm"
MODULE_CLASS_NETWORK= "network"
MODULE_CLASS_SCSI= "scsi"
+PCI_BASE_CLASS_NETWORK=0x02L
+PCI_BASE_CLASS_STORAGE=0x01L
+
def get_total_phsyical_mem(vars = {}, log = sys.stderr):
"""
return the total physical memory of the machine, in kilobytes.