From bb2ed63528787c838fd5a07a078dfd96a37d7c92 Mon Sep 17 00:00:00 2001 From: Tobi-wan Kenobi Date: Fri, 10 Mar 2017 08:26:33 +0100 Subject: [PATCH] [test/disk] Fix unit test for disk module --- tests/modules/test_disk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modules/test_disk.py b/tests/modules/test_disk.py index d7e3370..16f31c4 100644 --- a/tests/modules/test_disk.py +++ b/tests/modules/test_disk.py @@ -12,7 +12,7 @@ class MockVFS(object): def __init__(self, perc): self.f_blocks = 1024*1024 self.f_frsize = 1 - self.f_bavail = self.f_blocks - self.f_blocks*(perc/100.0) + self.f_bfree = self.f_blocks*(1.0 - perc/100.0) class TestDiskModule(unittest.TestCase): def setUp(self):