donate-cpu-server.py: Fix package names in time output. (#1570)
The package names contained the whole path, so the leading "resultPath" is now removed to only show the package names. Tested on local server.
This commit is contained in:
parent
7a59949cb4
commit
30d53a911e
|
@ -270,9 +270,9 @@ def timeReport(resultPath):
|
||||||
totalTime184 += t184
|
totalTime184 += t184
|
||||||
totalTimeHead += thead
|
totalTimeHead += thead
|
||||||
if t184>1 and t184*2 < thead:
|
if t184>1 and t184*2 < thead:
|
||||||
text += filename[filename.find('/')+1:] + ' ' + splitline[2] + ' ' + splitline[1] + '\n'
|
text += filename[len(resultPath)+1:] + ' ' + splitline[2] + ' ' + splitline[1] + '\n'
|
||||||
elif thead>1 and thead*2 < t184:
|
elif thead>1 and thead*2 < t184:
|
||||||
text += filename[filename.find('/')+1:] + ' ' + splitline[2] + ' ' + splitline[1] + '\n'
|
text += filename[len(resultPath)+1:] + ' ' + splitline[2] + ' ' + splitline[1] + '\n'
|
||||||
break
|
break
|
||||||
|
|
||||||
text += '\nTotal time: ' + str(totalTime184) + ' ' + str(totalTimeHead)
|
text += '\nTotal time: ' + str(totalTime184) + ' ' + str(totalTimeHead)
|
||||||
|
|
Loading…
Reference in New Issue