From 72642594f48a31ea2cd9d91342d994ce7b774606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu> Date: Tue, 14 Mar 2017 15:56:59 +0100 Subject: [PATCH] round up gb numbers --- tests/test_partitions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_partitions.py b/tests/test_partitions.py index d3292ab5..20ed8fde 100755 --- a/tests/test_partitions.py +++ b/tests/test_partitions.py @@ -13,7 +13,7 @@ BS = 512 def to_gbytes(size_bytes): - return size_bytes/(1024*1024*1024) + return int(round(size_bytes/(1024*1024*1024))) def read_file(fname): with open(fname, 'r') as f: -- GitLab