Skip to content

Commit a41ae12

Browse files
GrzegorzBiscorny
authored andcommitted
fixed getSerial()- Serial number is now properly returned
fixed getSerial()- Serial number is now properly returned
1 parent 0164bf4 commit a41ae12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def getSerial():
118118
with open('/proc/cpuinfo','r') as f:
119119
for line in f:
120120
if line[0:6]=='Serial':
121-
print(line[10:26])
121+
return(line[10:26])
122122
raise Exception('CPU serial not found')
123123

124124
def run():

0 commit comments

Comments
 (0)