diff options
author | zhifeng.jiang <jiang.zhifeng@zte.com.cn> | 2016-07-12 22:36:43 +0800 |
---|---|---|
committer | zhifeng jiang <jiang.zhifeng@zte.com.cn> | 2016-07-13 01:51:02 +0000 |
commit | f385a6d107b3c5c479583e74e18ef3c5fa55b304 (patch) | |
tree | d28028bc5fd404ae560ee6cb21e0dc365ac7c550 /benchmarks/playbooks/result_transform/ssl | |
parent | 01c843df1684678072988283b3789e11a34b7499 (diff) |
Fix pep8 errors for python files in benchmarks,data,dashboard
JIRA:QTIP-89
Change-Id: I3465221f0bdc9a8eb7c4e26069f7367fb1add729
Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
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) - |