To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.8% of users enabled 2FA.

Commit d1e9f0cf authored by John Zhang's avatar John Zhang
Browse files

get_json_log function

parent ce635e3f
......@@ -198,20 +198,18 @@ class TaskSet:
'error output written to %s' % errlog_file))
del data[task]
record = {
self.results = {task.name: task.get_result() for task in data}
return self.results
def get_json_log(self):
jslog = {
'name': self.name,
'iterations': self.iterations,
'benchmark': self.benchmark,
'callback': {k: self.callback[k] for k in ('name', 'param')},
'results': {t.name: data[t] for t in data},
'datapoints': {t.name: t.stats for t in self.tasks},
}
# save to result file
with self.resfile.open('w') as fp:
json.dump(record, fp, indent=2, separators=(', ', ': '))
self.results = {task.name: task.get_result() for task in data}
return self.results
return jslog
class Task:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment