Subversion Repositories SmartDukaan

Rev

Rev 2556 | Rev 2655 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2556 Rev 2571
Line 153... Line 153...
153
    print "threeg_talktime_score" + `threeg_talktime_score`
153
    print "threeg_talktime_score" + `threeg_talktime_score`
154
    print "twog_standbytime_score" + `twog_standbytime_score`
154
    print "twog_standbytime_score" + `twog_standbytime_score`
155
    print "threeg_standbytime_score" + `threeg_standbytime_score`
155
    print "threeg_standbytime_score" + `threeg_standbytime_score`
156
 
156
 
157
    if usage_time_score != 0:
157
    if usage_time_score != 0:
158
        score = (40*battery_type_score + 60*usage_time_score)
158
        score = (40*battery_type_score + 60*usage_time_score)/100
159
    elif threeg_talktime_score == 0:
159
    elif threeg_talktime_score == 0:
160
        score = (40*battery_type_score + 30*twog_talktime_score + 30*twog_standbytime_score )/100
160
        score = (40*battery_type_score + 30*twog_talktime_score + 30*twog_standbytime_score )/100
161
    else :
161
    else :
162
        score = (40*battery_type_score + 20*twog_talktime_score + 10*threeg_talktime_score + 20*twog_standbytime_score + 10*threeg_standbytime_score)/100
162
        score = (40*battery_type_score + 20*twog_talktime_score + 10*threeg_talktime_score + 20*twog_standbytime_score + 10*threeg_standbytime_score)/100
163
    return score
163
    return score
164
164