File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ def get_core_freqeuncies(core_number=0):
18
18
return lines
19
19
20
20
def max_load ():
21
- return 100
21
+ return 100.5
22
22
23
23
def min_load () :
24
- return 0
24
+ return - 0.5
25
25
26
26
27
27
# return list of temparature
@@ -44,7 +44,7 @@ def get_max_temparatures():
44
44
command = "sudo cpufreq-set -c%s -g performance" % i
45
45
os .system (command )
46
46
47
- for i in range (1 , 1000 ):
47
+ for i in range (1 , 100 ):
48
48
max_temparature_core_1 = max (max_temparature_core_1 , get_core_temparature ()[0 ])
49
49
max_temparature_core_2 = max (max_temparature_core_2 , get_core_temparature ()[1 ])
50
50
@@ -55,8 +55,8 @@ def get_max_temparatures():
55
55
return max_temparatures
56
56
57
57
def calculate_safe_temperature ():
58
- return max (get_max_temparatures ()) - 2
59
-
58
+ # return max(get_max_temparatures()) - 2
59
+ return 57
60
60
61
61
def set_core_frequency (core_no , frequency ):
62
62
command = "sudo cpufreq-set -c%s -f %s" % (core_no , frequency )
You can’t perform that action at this time.
0 commit comments