diff options
author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-09-04 02:26:09 +0000 |
---|---|---|
committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-09-04 02:26:09 +0000 |
commit | b3880a3305dcdd866638202b9da95cd99f06b085 (patch) | |
tree | 142d2cb2bc06d47be73276ea2ca5e14d6ac532f7 /example.py | |
parent | 1fea35ea0c1635e080028c914b88849c721764e6 (diff) | |
download | python-dmidecode-b3880a3305dcdd866638202b9da95cd99f06b085.tar.gz python-dmidecode-b3880a3305dcdd866638202b9da95cd99f06b085.tar.xz python-dmidecode-b3880a3305dcdd866638202b9da95cd99f06b085.zip |
Work on CPU details - seemed to been a bug with appending to a string rather
than rewriting it.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@67 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'example.py')
-rwxr-xr-x | example.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -2,7 +2,7 @@ import dmidecode import sys from pprint import pprint -print "*** bios ***"; pprint(dmidecode.bios()) +#print "*** bios ***"; pprint(dmidecode.bios()) #print "*** system ***\n", pprint(dmidecode.system()) #print "*** baseboard ***\n"; pprint(dmidecode.baseboard()) #print "*** chassis ***\n"; pprint(dmidecode.chassis()) @@ -11,3 +11,10 @@ print "*** bios ***"; pprint(dmidecode.bios()) #print "*** cache ***\n"; pprint(dmidecode.cache()) #print "*** connector ***\n"; pprint(dmidecode.connector()) #print "*** slot ***\n"; pprint(dmidecode.slot()) +# +#for v in dmidecode.memory().values(): +# if type(v) == dict and v['dmi_type'] == 17: +# print v['data']['Size'], +#print "" + +print dmidecode.type('17') |