From 82d360e634b6bd004760068208e51160a3cd63d3 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Mon, 30 Jan 2017 14:39:05 +0100 Subject: [PATCH] fix(fs): Use available bytes to calculate free disk space Refs #396 --- src/modules/fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/fs.cpp b/src/modules/fs.cpp index dc5920ef..875cb0a6 100644 --- a/src/modules/fs.cpp +++ b/src/modules/fs.cpp @@ -165,7 +165,7 @@ namespace modules { m_labelmounted->replace_token( "%total%", string_util::filesize(mount->bytes_total, m_fixed ? 2 : 0, m_fixed, m_bar.locale)); m_labelmounted->replace_token( - "%free%", string_util::filesize(mount->bytes_free, m_fixed ? 2 : 0, m_fixed, m_bar.locale)); + "%free%", string_util::filesize(mount->bytes_avail, m_fixed ? 2 : 0, m_fixed, m_bar.locale)); m_labelmounted->replace_token( "%used%", string_util::filesize(mount->bytes_used, m_fixed ? 2 : 0, m_fixed, m_bar.locale)); builder->node(m_labelmounted);