Skip to content

Commit

Permalink
Merge pull request #1004 from czert/main
Browse files Browse the repository at this point in the history
[modules/disk] Use bavail instead of bfree
  • Loading branch information
tobi-wan-kenobi authored Nov 30, 2023
2 parents dc6eea3 + 913bddb commit e9189c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bumblebee_status/modules/core/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def diskspace(self, widget):
def update(self):
st = os.statvfs(self._path)
self._size = st.f_blocks * st.f_frsize
self._used = (st.f_blocks - st.f_bfree) * st.f_frsize
self._left = self._size - self._used
self._left = st.f_bavail * st.f_frsize
self._used = self._size - self._left
self._percent = 100.0 * self._used / self._size

def state(self, widget):
Expand Down

0 comments on commit e9189c8

Please sign in to comment.