X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=host%2Fget_performance.rb;h=ab9ceb9b7469748a3a5fcf86bdb634a0375879d4;hp=43096f267c39c9bda5a5fb18452025f193540228;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=b022a029def51d63f330c12bf07156db294c8958 diff --git a/host/get_performance.rb b/host/get_performance.rb index 43096f2..ab9ceb9 100644 --- a/host/get_performance.rb +++ b/host/get_performance.rb @@ -2,7 +2,7 @@ # get_performance.rb =begin This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008, 2009 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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