commit 327f0990031d682373c284f212c41bba46250ea0
Author: James Meyer <james.meyer@operamail.com>
Date: Sun Nov 20 09:29:05 2011 -0600
smolt.py: add support for reading memory using the 3.x kernel.
diff --git a/mythtv/programs/scripts/hardwareprofile/smolt.py b/mythtv/programs/scripts/hardwareprofile/smolt.py
index fceb584..6dff184 100644
|
a
|
b
|
def read_cpuinfo():
|
| 1176 | 1176 | def read_memory(): |
| 1177 | 1177 | un = os.uname() |
| 1178 | 1178 | kernel = un[2] |
| | 1179 | #Check for the entire 3.x series |
| | 1180 | #This will need to be adjusted if/when the kernel changes the way it reports memory in the 3 series. |
| | 1181 | if kernel[:2] == "3.": |
| | 1182 | return read_memory_2_6() |
| 1179 | 1183 | if kernel[:3] == "2.6": |
| 1180 | 1184 | return read_memory_2_6() |
| 1181 | 1185 | if kernel[:3] == "2.4": |