Commit fe9ddba5 authored by Leo Iannacone's avatar Leo Iannacone

split directly on tabs

parent ededc5f9
......@@ -42,7 +42,7 @@ get_disk_usage = (cb) ->
others = 0
for line in stdout.split('\n')
continue if line == ''
info = line.replace(/\t+/g,' ').split(' ')
info = line.split(/\t+/g)
size = parseInt(info[0])
dirs = info[1].replace("#{config.debomatic.path}", '').split('/')
......
Markdown is supported
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