Skip to content

Commit

Permalink
Makefile: Update Cockpit lib to e3eae5b36d5280c853b3b08e85c0e1ca
Browse files Browse the repository at this point in the history
That version fixes `format_bytes()` to show a "B" unit for small
numbers, so drop our hack.

Closes #396
  • Loading branch information
cockpituous authored and jelly committed Apr 24, 2024
1 parent 20ee527 commit b7b263d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand Down
8 changes: 1 addition & 7 deletions src/sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
]
: []),
Expand Down

0 comments on commit b7b263d

Please sign in to comment.