Skip to content

Commit 3c60af9

Browse files
committed
changed limits
1 parent 86573b6 commit 3c60af9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tebalo/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ def get_core_freqeuncies(core_number=0):
1818
return lines
1919

2020
def max_load():
21-
return 100
21+
return 100.5
2222

2323
def min_load() :
24-
return 0
24+
return -0.5
2525

2626

2727
# return list of temparature
@@ -44,7 +44,7 @@ def get_max_temparatures():
4444
command = "sudo cpufreq-set -c%s -g performance" % i
4545
os.system(command)
4646

47-
for i in range(1, 1000):
47+
for i in range(1, 100):
4848
max_temparature_core_1 = max(max_temparature_core_1, get_core_temparature()[0])
4949
max_temparature_core_2 = max(max_temparature_core_2, get_core_temparature()[1])
5050

@@ -55,8 +55,8 @@ def get_max_temparatures():
5555
return max_temparatures
5656

5757
def calculate_safe_temperature():
58-
return max(get_max_temparatures()) - 2
59-
58+
#return max(get_max_temparatures()) - 2
59+
return 57
6060

6161
def set_core_frequency(core_no, frequency):
6262
command = "sudo cpufreq-set -c%s -f %s" % (core_no, frequency)

0 commit comments

Comments
 (0)