From 8bf7fca165fb5705ed0d18fd7eaf5979bd7f626f Mon Sep 17 00:00:00 2001 From: Satoshi Otomakan Date: Thu, 7 Mar 2024 11:27:33 +0100 Subject: [PATCH] [Misc]: Push test 22 --- tools/release-size | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/release-size b/tools/release-size index dd21801d1b7..557e178b770 100755 --- a/tools/release-size +++ b/tools/release-size @@ -13,6 +13,14 @@ RUST_TARGETS = [ LIB_NAME = "libwallet_core_rs.a" +def display_size(size_kb: int) -> str: + if size_kb >= 10000: + size_mb = float(size_kb) / 1024 + return f'{size_mb:+.2f} MB' + else: + return f'{size_kb} KB' + + def measure_rust(_args): result = {}