Subversion Repositories SmartDukaan

Rev

Rev 4043 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4043 Rev 5173
Line 15... Line 15...
15
            wireless_score = 10.0 if wireless.find('b/g/n') > -1 else 8.0
15
            wireless_score = 10.0 if wireless.find('b/g/n') > -1 else 8.0
16
            
16
            
17
        if features.has_key('Ethernet LAN'):
17
        if features.has_key('Ethernet LAN'):
18
            ethernet = str(features.get('Ethernet LAN')[0])
18
            ethernet = str(features.get('Ethernet LAN')[0])
19
            
19
            
20
            if ethernet.find('1000 ') > -1:
20
            if ethernet.find('1 Gbps') > -1:
21
                ethernet_score = 10.0
21
                ethernet_score = 10.0
22
            elif ethernet.find('100') > -1:
22
            elif ethernet.find('100 Mbps') > -1:
23
                ethernet_score = 7.0
23
                ethernet_score = 7.0
24
            else:
24
            else:
25
                ethernet_score = 4.0
25
                ethernet_score = 4.0
26
                
-
 
27
        if features.has_key('Bluetooth'):
26
        if features.has_key('Bluetooth'):
28
            if len(features.get('Bluetooth')) > 0:
27
            if len(features.get('Bluetooth')) > 0:
29
                bluetooth = str(features.get('Bluetooth')[0])
28
                bluetooth = str(features.get('Bluetooth')[0])
30
                bluetooth_score = 10.0 if bluetooth.find('3.0') else 7.0
29
                bluetooth_score = 10.0 if bluetooth.find('3.0') else 7.0
31
            else:
30
            else: