From 06f7390c9ee515c21c8f6d711363cb529f4a7c7c Mon Sep 17 00:00:00 2001 From: Jim Paris Date: Mon, 5 Aug 2013 12:25:10 -0400 Subject: [PATCH] Fix disk usage block size --- nilmdb/utils/diskusage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nilmdb/utils/diskusage.py b/nilmdb/utils/diskusage.py index a7a2c32..fe50d43 100644 --- a/nilmdb/utils/diskusage.py +++ b/nilmdb/utils/diskusage.py @@ -22,7 +22,7 @@ def du(path): files in the process of being removed.""" try: st = os.stat(path) - size = st.st_blocks * st.st_blksize + size = st.st_blocks * 512 if os.path.isdir(path): for thisfile in os.listdir(path): filepath = os.path.join(path, thisfile)