From 89a26634f48da04c0a0840c3afa79dae303f3625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wr=C3=B3bel?= Date: Mon, 28 Sep 2026 15:17:07 +0200 Subject: [PATCH 1/2] Correct decimal kilobyte symbols Vitals divides network rates by 1,000, but uses the KiB and MiB instead of kB and MB. KiB/MiB are for binary units based on 1,024. This change corrects the usage of those units. Also renames Kbps into kbps and KB into kB, because k is SI symbol for kilo. --- prefs.ui | 4 ++-- schemas/org.gnome.shell.extensions.vitals.gschema.xml | 2 +- values.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/prefs.ui b/prefs.ui index 1439a302..3550b4a0 100644 --- a/prefs.ui +++ b/prefs.ui @@ -847,8 +847,8 @@ center Auto - Kbps / KiB/s - Mbps / MiB/s + kbps / kB/s + Mbps / MB/s diff --git a/schemas/org.gnome.shell.extensions.vitals.gschema.xml b/schemas/org.gnome.shell.extensions.vitals.gschema.xml index f9108596..b00bbce2 100644 --- a/schemas/org.gnome.shell.extensions.vitals.gschema.xml +++ b/schemas/org.gnome.shell.extensions.vitals.gschema.xml @@ -103,7 +103,7 @@ 0 Fixed network speed unit - Fix the network speed unit instead of auto-scaling. 0=Auto, 1=Kbps/KiB/s, 2=Mbps/MiB/s + Fix the network speed unit instead of auto-scaling. 0=Auto, 1=kbps/kB/s, 2=Mbps/MB/s "/" diff --git a/values.js b/values.js index 4cd4b5f6..3a2a976a 100644 --- a/values.js +++ b/values.js @@ -37,7 +37,7 @@ const cbFun = (d, c) => { return [d[0] + aa, bb]; }; -const decimal = [ 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB' ]; +const decimal = [ 'B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB' ]; const binary = [ 'B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB' ]; const hertz = [ 'Hz', 'KHz', 'MHz', 'GHz', 'THz', 'PHz', 'EHz', 'ZHz' ]; From a80889702706058b596405e0560e64785fcaad76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wr=C3=B3bel?= Date: Mon, 28 Sep 2026 15:17:32 +0200 Subject: [PATCH 2/2] Omit per-second suffix from network byte rates Shorter network units reduce uneven gaps, especially when fixed widths are enabled and the gaps have expanded considerably. Remove the /s suffix from byte-rate labels and update the fixed-unit choices to match. --- prefs.ui | 4 ++-- schemas/org.gnome.shell.extensions.vitals.gschema.xml | 2 +- values.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/prefs.ui b/prefs.ui index 3550b4a0..70acbf52 100644 --- a/prefs.ui +++ b/prefs.ui @@ -847,8 +847,8 @@ center Auto - kbps / kB/s - Mbps / MB/s + kbps / kB + Mbps / MB diff --git a/schemas/org.gnome.shell.extensions.vitals.gschema.xml b/schemas/org.gnome.shell.extensions.vitals.gschema.xml index b00bbce2..b977168c 100644 --- a/schemas/org.gnome.shell.extensions.vitals.gschema.xml +++ b/schemas/org.gnome.shell.extensions.vitals.gschema.xml @@ -103,7 +103,7 @@ 0 Fixed network speed unit - Fix the network speed unit instead of auto-scaling. 0=Auto, 1=kbps/kB/s, 2=Mbps/MB/s + Fix the network speed unit instead of auto-scaling. 0=Auto, 1=kbps/kB, 2=Mbps/MB "/" diff --git a/values.js b/values.js index 3a2a976a..ff13365b 100644 --- a/values.js +++ b/values.js @@ -167,7 +167,7 @@ export const Values = GObject.registerClass({ if (use_bps) { ending = decimal[exp].replace('B', 'bps'); } else { - ending = decimal[exp] + '/s'; + ending = decimal[exp]; } break;