Ticket #10170: 3.x-smolt.patch

File 3.x-smolt.patch, 779 bytes (added by anonymous, 9 years ago)

patch for 3.x series

  • client/smolt.py

    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(): 
    11761176def read_memory():
    11771177    un = os.uname()
    11781178    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.":
    11801182        return read_memory_2_6()
    11811183    if kernel[:3] == "2.6":
    11821184        return read_memory_2_6()