(2014-02-19, 00:31)hellow Wrote: I just tested it on my pi now. It works, if only i could manage to moint my nas... Anyway everything seems to be correct apart from the disk usage. It says that nothing is used. And that total diskspace is just 225 mb. Thats not correct but there isnt anything i can do about it. Just a word of caution, you need to install from source, apt-get installed version 0.5 and it will NOT work. By the default the mountpoints are / and /boot (on my pi atleast). If any could give me a list of standard mountpoint that should not be included that would be awesome.
(2014-02-18, 23:25)MadClicker Wrote: (2014-02-18, 20:25)hellow Wrote: Any Linux users that have tested the stat module. Does it work? Any mountpoints that should be ignored?
I'm working on it right now. I had a disk crash last night and lost some work....besides the usual pita.
Oh man, i feels for you. I just had a disk die during parity rebuild
I pushed what I did this afternoon to my develop branch.
If I remember correctly I changed this:
usage = psutil.disk_usage(disk.device)
Back to this:
usage = psutil.disk_usage(disk.mountpoint)
in the posix 'else' to get the diskspace numbers back right. I also noticed the way you select just the devices and made use of the 'disk_usage2' sub you left to separate the progress bars from the full table view. I'm not fond of how clunky tables look with bars in them.
The top stuff is supposed to be in the summary tab and the table in the disks and nfs tab:
The other tabs are placeholders for now. The html in the summary is broke and messing up the tabs, but that's just work.
This is a shot of a curses app that uses psutil...kinda what I was thinking for a summary....but with bars.