Skip to content

Commit 077e558

Browse files
committed
Cockpit 316
1 parent 6fecb13 commit 077e558

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

_posts/2024-04-24-cockpit-316.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
title: Cockpit 316
3+
author: jelle
4+
date: '2024-04-25'
5+
tags: cockpit, machines, ostree, podman
6+
slug: cockpit-316
7+
category: release
8+
summary: 'cockpit.js format_bytes API changes'
9+
---
10+
11+
Cockpit is the [modern Linux admin interface](https://cockpit-project.org/).
12+
We release regularly.
13+
14+
Here are the release notes from Cockpit 316, cockpit-machines 312, and cockpit-podman 87:
15+
16+
17+
## cockpit.js API: Fix format_bytes() units
18+
19+
The [`cockpit.format_bytes()`](https://cockpit-project.org/guide/latest/cockpit-util.html#cockpit-format-bytes) function now writes the unit for kilobytes as SI conformant "kB" instead of "KB" when formatting decimal (base-10) sizes. It also uses the unit "B" (bytes) for numbers less than 1000 instead of no unit at all.
20+
21+
Note that many projects, in particular the ones based on current [starter-kit](https://github.com/cockpit-project/starter-kit), bundle `cockpit.js` and usually also pin down a specific git commit from cockpit.git. So these projects won't immediately pick up the change, but should update the cockpit library import and possibly adjust their usage of `format_bytes()`.
22+
23+
## Try it out
24+
25+
Cockpit 316, cockpit-machines 312, cockpit-ostree 202 and cockpit-podman 87 are available now:
26+
27+
* [For your Linux system](https://cockpit-project.org/running.html)
28+
* [Cockpit Client](https://flathub.org/apps/details/org.cockpit_project.CockpitClient)
29+
30+
* [Cockpit Source Tarball](https://github.com/cockpit-project/cockpit/releases/tag/316)
31+
* [cockpit Fedora 40](https://bodhi.fedoraproject.org/updates/FEDORA-2024-bc42ae090a)
32+
* [cockpit Fedora 39](https://bodhi.fedoraproject.org/updates/FEDORA-2024-c61ce9706d)
33+
* [cockpit-machines Source Tarball](https://github.com/cockpit-project/cockpit-machines/releases/tag/312)
34+
* [cockpit-machines Fedora 40](https://bodhi.fedoraproject.org/updates/FEDORA-2024-2326dec3de)
35+
* [cockpit-machines Fedora 39](https://bodhi.fedoraproject.org/updates/FEDORA-2024-700df9e0b4)
36+
* [cockpit-ostree Source Tarball](https://github.com/cockpit-project/cockpit-ostree/releases/tag/202)
37+
* [cockpit-ostree Fedora 39](https://bodhi.fedoraproject.org/updates/FEDORA-2024-e8e706ec17)
38+
* [cockpit-ostree Fedora 40](https://bodhi.fedoraproject.org/updates/FEDORA-2024-40beb7bdae)
39+
* [cockpit-podman Source Tarball](https://github.com/cockpit-project/cockpit-podman/releases/tag/87)
40+
* [cockpit-podman Fedora 40](https://bodhi.fedoraproject.org/updates/FEDORA-2024-bba9077d43)
41+
* [cockpit-podman Fedora 39](https://bodhi.fedoraproject.org/updates/FEDORA-2024-17dc45708b)
42+
43+
44+
*[API]: Application Programming Interface
45+
*[CPU]: Central Processing Unit, the "brain" of a computer

0 commit comments

Comments
 (0)