Skip to content

Commit 96a8122

Browse files
minor edit
1 parent 4c2888f commit 96a8122

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orangetool/orangetool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def get_temp(Zone=0,DEBUG=False):
9191
#command=sub.Popen(["cat","/sys/class/thermal/thermal_zone"+str(Zone)+"/temp"],stderr=sub.PIPE,stdin=sub.PIPE,stdout=sub.PIPE)
9292
#response=list(command.communicate())
9393
response=command.read()
94-
return response
94+
return response[:-1]
9595
#if len(response[0])!=0:
9696
#return str(response[0])[2:-3]
9797
#else:
@@ -252,7 +252,7 @@ def freeup(DEBUG=False):
252252
output = sub.Popen(["echo", "3", ">", "/proc/sys/vm/drop_caches"], stdout=sub.PIPE,stderr=sub.PIPE)
253253
result=list(output.communicate())
254254
if len(result[1])>0:
255-
raise
255+
raise Exception
256256
RAM_after=int(ram_free(convert=False))
257257
freeuped_ram=RAM_after - RAM_before
258258
if freeuped_ram>0:

0 commit comments

Comments
 (0)