Browse Source

Fix disk usage block size

tags/nilmdb-1.9.4
Jim Paris 9 years ago
parent
commit
06f7390c9e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nilmdb/utils/diskusage.py

+ 1
- 1
nilmdb/utils/diskusage.py View File

@@ -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)


Loading…
Cancel
Save