Created
April 12, 2018 01:14
-
-
Save stnbu/321384714d65b92e47ea86b1acfbdf6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
s = os.statvfs('/') | |
use = 1 - float(s.f_bavail) / float(s.f_blocks) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment