commit 150775a166ee12854379eb2bac913d4d6f761c3c
Author: James Meyer <james.meyer@operamail.com>
Date: Sun Nov 20 09:11:29 2011 -0600
smolt.py: Modifiy read_memory, so the entire 3. series kernel is covered.
Currently this works with 3.0 and 3.1
diff --git a/client/smolt.py b/client/smolt.py
index 04b4c0f..6dff184 100644
a
|
b
|
def read_cpuinfo(): |
1176 | 1176 | def read_memory(): |
1177 | 1177 | un = os.uname() |
1178 | 1178 | kernel = un[2] |
1179 | | if kernel[:3] == "3.": |
| 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.": |
1180 | 1182 | return read_memory_2_6() |
1181 | 1183 | if kernel[:3] == "2.6": |
1182 | 1184 | return read_memory_2_6() |