Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2017-03-26 02:11:45 +0300
committerChristopher Haster <chaster@utexas.edu>2017-03-26 03:23:30 +0300
commita711675607496eb6271c22de9239f334639980e3 (patch)
tree31d841affb695dbf46b82f46dae8225b87c8c23e /tests/stats.py
parentafa4ad82544048581913e0a273745acb3886dc84 (diff)
Added dir tests, test fixes, config
Diffstat (limited to 'tests/stats.py')
-rwxr-xr-xtests/stats.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stats.py b/tests/stats.py
index 9508e79..b0c66a3 100755
--- a/tests/stats.py
+++ b/tests/stats.py
@@ -18,13 +18,13 @@ def main():
os.path.getsize(os.path.join('blocks', f))
for f in os.listdir('blocks') if re.match('\d+', f))
- print 'runtime: %.3f' % (time.time() - os.stat('blocks').st_ctime)
-
with open('blocks/stats') as file:
s = struct.unpack('<QQQ', file.read())
print 'read_count: %d' % s[0]
print 'prog_count: %d' % s[1]
print 'erase_count: %d' % s[2]
+ print 'runtime: %.3f' % (time.time() - os.stat('blocks').st_ctime)
+
if __name__ == "__main__":
main(*sys.argv[1:])