From d1e2f6d2b0ba62c29631e13f8cde45afe6b421cf Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 20 Jan 2015 15:24:52 +0100 Subject: [PATCH] bist: show current length in MB --- test/bist.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/bist.py b/test/bist.py index f2a1e40a..a1f60473 100644 --- a/test/bist.py +++ b/test/bist.py @@ -95,7 +95,7 @@ class LiteSATABISTIdentifyDriver: info += "Capacity: %3.2f GB\n" %((self.total_sectors*logical_sector_size)/GB) for k, v in self.capabilities.items(): info += k + ": " + str(v) + "\n" - print(info) + print(info, end="") def _get_args(): parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter, @@ -134,7 +134,12 @@ if __name__ == "__main__": # checker (read and check data from HDD) read_speed, read_errors = checker.run(sector, count, random) - print("sector=%d write_speed=%4.2fMB/sec read_speed=%4.2fMB/sec errors=%d" %(sector, write_speed/MB, read_speed/MB, write_errors + read_errors)) + print("sector=%d(%dMB) wr_speed=%4.2fMB/sec rd_speed=%4.2fMB/sec errors=%d" %( + sector, + sector*logical_sector_size/MB, + write_speed/MB, + read_speed/MB, + write_errors + read_errors)) sector += count except KeyboardInterrupt: -- 2.30.2