Commit d3d03ec6 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Décompte en bytes

parent 6ca52406
......@@ -44,7 +44,7 @@ def scan_volume(path):
# TODO mettre le niveau de profondeur (2) en option
starttime = datetime.datetime.now()
lines = subprocess.check_output(
["du", "--exclude", ".snapshot", "-d4", volume]).decode("utf-8").splitlines()
["du", "--exclude", ".snapshot", "-b", "-d4", volume]).decode("utf-8").splitlines()
logger.debug("Volume scanned in %s", datetime.datetime.now() - starttime)
for l in lines:
logger.debug(l)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment