jenkinsfile
This commit is contained in:
parent
61cc1467b4
commit
3bddd934ea
@ -8,7 +8,7 @@ lastId = ""
|
||||
globalPercent = 0
|
||||
counter = 0
|
||||
|
||||
ssr = 0
|
||||
ssrCounter = 0
|
||||
|
||||
with open("helper.txt", "r") as f:
|
||||
for line in f:
|
||||
@ -19,12 +19,12 @@ with open("helper.txt", "r") as f:
|
||||
sum = int(helper[0]) + int(helper[1]) + int(helper[2]) + int(helper[3])
|
||||
sum = ((float(helper[0]))/(float(sum))) * 100
|
||||
if (sum == 100):
|
||||
ssr += 1
|
||||
ssrCounter += 1
|
||||
globalPercent += sum
|
||||
counter += 1
|
||||
wer.write(lastId + " = " + str(sum) + "%\n")
|
||||
|
||||
wer.write("AVG: " + str(float((globalPercent) / (float(counter) * 100)*100)) + "%")
|
||||
ssr.write(str(ssr/counter * 100) + "%")
|
||||
ssr.write(str(ssrCounter/counter * 100) + "%")
|
||||
wer.close()
|
||||
ssr.close()
|
Loading…
Reference in New Issue
Block a user