Skip to content

Commit 293f5ba

Browse files
committed
CBPS-985: Increase default precision of calculated backup size
Change-Id: If780fb91445fb47f0014c6cf935d80d4c1d5f190 Reviewed-on: https://review.couchbase.org/c/perfrunner/+/169441 Tested-by: Build Bot <[email protected]> Reviewed-by: Korrigan Clark <[email protected]>
1 parent 6eba3b1 commit 293f5ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

perfrunner/helpers/local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def calc_backup_size(cluster_spec: ClusterSpec,
213213
backup_size = backup_size.split()[0]
214214
backup_size = float(backup_size) / 2 ** 30 # B -> GB
215215

216-
return round(backup_size) if rounded else backup_size
216+
return round(backup_size, 2) if rounded else backup_size
217217

218218

219219
def restore(master_node: str, cluster_spec: ClusterSpec, threads: int,

perfrunner/remote/linux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ def calc_backup_size(self, cluster_spec: ClusterSpec,
708708
backup_size = backup_size.split()[0]
709709
backup_size = float(backup_size) / 2 ** 30 # B -> GB
710710

711-
return round(backup_size) if rounded else backup_size
711+
return round(backup_size, 2) if rounded else backup_size
712712

713713
@master_client
714714
def backup(self, master_node: str, cluster_spec: ClusterSpec, threads: int,

0 commit comments

Comments
 (0)