Skip to content

Commit

Permalink
fix size output of 'rosclean check'
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Jul 6, 2020
1 parent b89723c commit 53e58ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rosclean/src/rosclean/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def get_human_readable_disk_usage(d):
# only implemented on Linux and FreeBSD for now. Should work on OS X but need to verify first (du is not identical)
if platform.system() in ['Linux', 'FreeBSD']:
try:
return subprocess.Popen(['du', '-sh', d], stdout=subprocess.PIPE).communicate()[0].split()[0]
return subprocess.Popen(['du', '-sh', d], stdout=subprocess.PIPE).communicate()[0].split()[0].decode()
except Exception:
raise CleanupException('rosclean is not supported on this platform')
elif platform.system() == 'Windows':
Expand Down

0 comments on commit 53e58ef

Please sign in to comment.