diff options
author | 2016-07-15 02:34:31 +0000 | |
---|---|---|
committer | 2016-07-15 02:34:31 +0000 | |
commit | d24a9f7101a0eacdd4dfae75509d1839ac07ad79 (patch) | |
tree | 2134ddbc4bbb74aabb3bd1e84960fb1aac885c7d /benchmarks/playbooks/result_transform/ssl | |
parent | b184818fb598227f19bc821ee1ef9049165265e0 (diff) | |
parent | f385a6d107b3c5c479583e74e18ef3c5fa55b304 (diff) |
Merge "Fix pep8 errors for python files in benchmarks,data,dashboard"
Diffstat (limited to 'benchmarks/playbooks/result_transform/ssl')
-rw-r--r-- | benchmarks/playbooks/result_transform/ssl/ssl_transform.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/benchmarks/playbooks/result_transform/ssl/ssl_transform.py b/benchmarks/playbooks/result_transform/ssl/ssl_transform.py index 6e632251..029135ac 100644 --- a/benchmarks/playbooks/result_transform/ssl/ssl_transform.py +++ b/benchmarks/playbooks/result_transform/ssl/ssl_transform.py @@ -1,10 +1,7 @@ import os -import json import pickle import datetime -#total_cpu=os.popen("cat $HOME/tempD/nDPI/example/result.txt | tail -1").read() - openssl_version = os.popen("cat RSA_dump | head -1").read().rstrip() rsa_512_sps = os.popen( "cat RSA_dump | grep '512 bits ' | awk '{print $6}' ").read().rstrip() @@ -23,7 +20,6 @@ rsa_4096_sps = os.popen( rsa_4096_vps = os.popen( "cat RSA_dump | grep '4096 bits ' | awk '{print $7}' ").read().rstrip() - aes_16B = os.popen( "cat AES-128-CBC_dump | grep 'aes-128-cbc ' | awk '{print $2}' ").read().rstrip() aes_64B = os.popen( @@ -35,16 +31,12 @@ aes_1024B = os.popen( aes_8192B = os.popen( "cat AES-128-CBC_dump | grep 'aes-128-cbc ' | awk '{print $6}' ").read().rstrip() - hostname = os.popen("hostname").read().rstrip() time_stamp = str(datetime.datetime.utcnow().isoformat()) - os.system("mv RSA_dump " + hostname + "-" + time_stamp + ".log") os.system("cat AES-128-CBC_dump >> " + hostname + "-" + time_stamp + ".log") - - result = {} result['1. Version'] = [openssl_version] @@ -64,4 +56,3 @@ result['3. AES-128-cbc throughput']['5. 8192 Bytes block (B/sec)'] = aes_8192B with open('./result_temp', 'w+') as result_file: pickle.dump(result, result_file) - |