-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disk_usage does not work #10
Comments
This works for me on OSX and Debian Linux. What operating system are you on? The reason that a space is included in the regex is so that a mount_point of |
Actually, I might have been wrong. I tested the command on Ubuntu and it didn't return a correct result and after I read a few blogs and tested it again a few weeks later, it worked fine. So please close off the issue. |
I have the same problem than anlek has before. Ubuntu 10.4
Actual regex: Modified regex: Thanks for your work f. |
I don't know if it could be a good idea to modify the valid? method so it could test that the regex responds with not empty result. |
I believe that the actual call for usage fails
Line 21 in disk_usage.rb
usage =
df -P | grep -i " #{self.mount_point}$" | awk '{print $5}' | sed 's/%//'
should be
usage =
df -P | grep -i #{self.mount_point} | awk '{print $5}' | sed 's/%//'
At least that's what I think it should be.
Andrew
The text was updated successfully, but these errors were encountered: