summaryrefslogtreecommitdiffhomepage
path: root/src/StatFS.hsc
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2012-07-19 22:11:52 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2012-07-19 22:11:52 +0200
commitf24d03d994c59dd9d91fd280272254eeb6a03b19 (patch)
tree6b87ad127ee1ee7da0cdf69f97c90f36558f8753 /src/StatFS.hsc
parentbbaba37197a2d2c975abb5bbef350bba71cbb526 (diff)
downloadxmobar-f24d03d994c59dd9d91fd280272254eeb6a03b19.tar.gz
xmobar-f24d03d994c59dd9d91fd280272254eeb6a03b19.tar.bz2
Nit in StatFS
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 d007d08..e1cb89c 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 - bavail) * bpb
+ , fsStatBytesUsed = toI (max 0 (bcount - bavail)) * bpb
}