Small typo fix in Client and shift style of the diectionary conversion

This commit is contained in:
Andrew Grant committed 2020-09-04 00:44:39 -04:00
1 parent d55943d77d
commit ad0bda0529
2 files changed
+6 -5

No files matched your search

+3 -1
View File
@@ -18,11 +18,13 @@
# # # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
from __future__ import print_function from __future__ import print_function
import argparse, ast, hashlib, json, math, multiprocessing, os import argparse, ast, hashlib, json, math, multiprocessing, os
import platform, re, requests, shutil, subprocess, sys, time, zipfile import platform, re, requests, shutil, subprocess, sys, time, zipfile
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
HTTP_TIMEOUT = 30 # Timeout in seconds for requests HTTP_TIMEOUT = 30 # Timeout in seconds for requests
@@ -419,7 +421,7 @@ def computeMultiThreadedBenchmark(arguments, engine):
# Log and return computed bench and speed # Log and return computed bench and speed
print ('Bench for {0} is {1}'.format(engine['name'], bench[0])) print ('Bench for {0} is {1}'.format(engine['name'], bench[0]))
print ('speed for {0} is {1}\n'.format(engine['name'], int(avg))) print ('Speed for {0} is {1}\n'.format(engine['name'], int(avg)))
return (bench[0], avg) return (bench[0], avg)
def computeAdjustedTimecontrol(arguments, data, nps): def computeAdjustedTimecontrol(arguments, data, nps):
+3 -4
View File
@@ -384,20 +384,19 @@ def workloadDictionary(test, result, machine):
'book' : OPENBENCH_CONFIG['books'][test.bookname], 'book' : OPENBENCH_CONFIG['books'][test.bookname],
'timecontrol' : test.timecontrol, 'timecontrol' : test.timecontrol,
'engine' : test.engine, 'engine' : test.engine,
'dev' : { 'dev' : {
'id' : test.dev.id, 'name' : test.dev.name, 'id' : test.dev.id, 'name' : test.dev.name,
'source' : test.dev.source, 'protocol' : test.dev.protocol, 'source' : test.dev.source, 'protocol' : test.dev.protocol,
'sha' : test.dev.sha, 'bench' : test.dev.bench, 'sha' : test.dev.sha, 'bench' : test.dev.bench,
'options' : test.devoptions, 'options' : test.devoptions, 'network' : test.devnetwork,
'network' : test.devnetwork,
}, },
'base' : { 'base' : {
'id' : test.base.id, 'name' : test.base.name, 'id' : test.base.id, 'name' : test.base.name,
'source' : test.base.source, 'protocol' : test.base.protocol, 'source' : test.base.source, 'protocol' : test.base.protocol,
'sha' : test.base.sha, 'bench' : test.base.bench, 'sha' : test.base.sha, 'bench' : test.base.bench,
'options' : test.baseoptions, 'options' : test.baseoptions, 'network' : test.basenetwork,
'network' : test.basenetwork,
}, },
}, },
} }