X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=host%2Fget_performance.rb;h=b78ba9981f3048ac49d09c0160406a59c8daccce;hb=e542ff92d053ecf40b42364a44bc887431cecae2;hp=43096f267c39c9bda5a5fb18452025f193540228;hpb=b022a029def51d63f330c12bf07156db294c8958;p=avr-crypto-lib.git diff --git a/host/get_performance.rb b/host/get_performance.rb index 43096f2..b78ba99 100644 --- a/host/get_performance.rb +++ b/host/get_performance.rb @@ -79,27 +79,26 @@ end def readPerformanceVector(param) lb="" - buffer="" fname="" fout=0 begin lb = read_line() if lb.match(/End of performance figures/) return false - end - if m=lb.match(/=== (.*) performance ===/) - fout.close if fout!=0 - fname=$dir+m[1] - fname+="."+param if param != "" - fname+=".txt" - fout = File.open(fname, "w+") - printf("> %s \n", fname) - fout.write(lb) - else - if fout!=0 && lb!="" - fout.write(lb) - end - end + end + if m=lb.match(/=== (.*) performance ===/) + fout.close if fout!=0 + fname=$dir+m[1] + fname+="."+param if param != "" + fname+=".txt" + fout = File.open(fname, "w+") + printf("> %s \n", fname) + fout.write(lb) + else + if fout!=0 && lb!="" + fout.write(lb) + end + end end while true end