From: Florent Kermarrec Date: Tue, 20 Jan 2015 14:24:52 +0000 (+0100) Subject: bist: show current length in MB X-Git-Tag: 24jan2021_ls180~2572^2~42 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1e2f6d2b0ba62c29631e13f8cde45afe6b421cf;p=litex.git bist: show current length in MB --- 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: