Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions prefs.ui
Original file line number Diff line number Diff line change
Expand Up @@ -847,8 +847,8 @@
<property name="valign">center</property>
<items>
<item translatable="yes">Auto</item>
<item translatable="yes">Kbps / KiB/s</item>
<item translatable="yes">Mbps / MiB/s</item>
<item translatable="yes">kbps / kB</item>
<item translatable="yes">Mbps / MB</item>
</items>
</object>
</child>
Expand Down
2 changes: 1 addition & 1 deletion schemas/org.gnome.shell.extensions.vitals.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<key type="i" name="network-speed-unit">
<default>0</default>
<summary>Fixed network speed unit</summary>
<description>Fix the network speed unit instead of auto-scaling. 0=Auto, 1=Kbps/KiB/s, 2=Mbps/MiB/s</description>
<description>Fix the network speed unit instead of auto-scaling. 0=Auto, 1=kbps/kB, 2=Mbps/MB</description>
</key>
<key type="s" name="storage-path">
<default>"/"</default>
Expand Down
4 changes: 2 additions & 2 deletions values.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ];

Expand Down Expand Up @@ -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;
Expand Down