From b7b263dc7a6cc171a1e6545c12cf37dd6cb9cf4c Mon Sep 17 00:00:00 2001 From: Cockpit Project Date: Wed, 24 Apr 2024 05:27:09 +0000 Subject: [PATCH] Makefile: Update Cockpit lib to e3eae5b36d5280c853b3b08e85c0e1ca That version fixes `format_bytes()` to show a "B" unit for small numbers, so drop our hack. Closes #396 --- Makefile | 2 +- src/sidebar.jsx | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 25859a51..e82fd416 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ COCKPIT_REPO_FILES = \ $(NULL) COCKPIT_REPO_URL = https://github.com/cockpit-project/cockpit.git -COCKPIT_REPO_COMMIT = 5516784bc7aba7c6fb02d19c57afc4de953ccd17 # 315 + 39 commits +COCKPIT_REPO_COMMIT = e3eae5b36d5280c853b3b08e85c0e1cad57bfd41 # 315 + 76 commits $(COCKPIT_REPO_FILES): $(COCKPIT_REPO_STAMP) COCKPIT_REPO_TREE = '$(strip $(COCKPIT_REPO_COMMIT))^{tree}' diff --git a/src/sidebar.jsx b/src/sidebar.jsx index e8882911..5c3ef554 100644 --- a/src/sidebar.jsx +++ b/src/sidebar.jsx @@ -76,13 +76,7 @@ const getDescriptionListItems = selected => { { id: "description-list-size", label: _("Size"), - value: cockpit.format( - "$0 $1", - cockpit.format_bytes(selected.size), - selected.size < 1000 - ? "B" - : "", - ) + value: cockpit.format_bytes(selected.size), }, ] : []),