summaryrefslogtreecommitdiffhomepage
path: root/src/StatFS.hsc
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2012-03-19 07:43:43 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2012-03-19 07:47:21 +0100
commitac1fa917952057fb6950c0979cd8dcd308440551 (patch)
tree983ebc6698bd2ce7b25aca554e6e095d44f3f5dc /src/StatFS.hsc
parentc5690b268a970f4cbf7b6d73f48a57d9126ac512 (diff)
downloadxmobar-ac1fa917952057fb6950c0979cd8dcd308440551.tar.gz
xmobar-ac1fa917952057fb6950c0979cd8dcd308440551.tar.bz2
Disk usage monitor tweak
Computing used space from total and available (rather than free) space.
Diffstat (limited to 'src/StatFS.hsc')
-rw-r--r--src/StatFS.hsc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StatFS.hsc b/src/StatFS.hsc
index d9d34ea..d007d08 100644
--- a/src/StatFS.hsc
+++ b/src/StatFS.hsc
@@ -79,5 +79,5 @@ getFileSystemStats path =
, fsStatByteCount = toI bcount * bpb
, fsStatBytesFree = toI bfree * bpb
, fsStatBytesAvailable = toI bavail * bpb
- , fsStatBytesUsed = toI (bcount - bfree) * bpb
+ , fsStatBytesUsed = toI (bcount - bavail) * bpb
}