Skip to content

Commit 5f9f766

Browse files
authored
multicore-sys-monitor v3.8.3: Bug fix: The units of measurement for used memory and available memory are now correct (#8430)
1 parent aa1bf8b commit 5f9f766

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

multicore-sys-monitor@ccadeptic23/files/multicore-sys-monitor@ccadeptic23/6.4/applet.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,8 +1411,10 @@ class MemDataProvider {
14111411
let len = trans.length - 2;
14121412
let toolTipString = "-".repeat(Math.trunc((2*(spaces + 1) - len)/2)) + " " + trans + " " + "-".repeat(Math.round((2*(spaces + 1) - len)/2)) + '\n';
14131413
if (this.applet.Mem_showBytesInTooltip) {
1414-
toolTipString += _('Used:').split(':')[0].padStart(spaces, ' ') + ':\t' + " " + formatNumber(parseFloat(formatBytesValueUnit(this.memTotal * this.currentReadings[0], 2, false)[0]).toFixed(2), 2).padStart(6, ' ') + " " + unitMemTotal.padStart(6, ' ') + '\n';
1415-
toolTipString += _('Available:').split(':')[0].padStart(spaces, ' ') + ':\t' + " " + formatNumber(parseFloat(formatBytesValueUnit(this.memTotal * (1 - this.currentReadings[0]), 2, false)[0]).toFixed(2), 2).padStart(6, ' ') + " " + unitMemTotal.padStart(6, ' ') + '\n';
1414+
let [strMemUsed, unitMemUsed] = formatBytesValueUnit(this.memTotal * this.currentReadings[0], 2, false);
1415+
let [strMemAvail, unitMemAvail] = formatBytesValueUnit(this.memTotal * (1 - this.currentReadings[0]), 2, false);
1416+
toolTipString += _('Used:').split(':')[0].padStart(spaces, ' ') + ':\t' + " " + formatNumber(parseFloat(strMemUsed).toFixed(2), 2).padStart(6, ' ') + " " + unitMemUsed.padStart(6, ' ') + '\n';
1417+
toolTipString += _('Available:').split(':')[0].padStart(spaces, ' ') + ':\t' + " " + formatNumber(parseFloat(strMemAvail).toFixed(2), 2).padStart(6, ' ') + " " + unitMemAvail.padStart(6, ' ') + '\n';
14161418
}
14171419
let attributes = [_('Used:'), _('Cached:'), _('Buffer:'), _('Free:')];
14181420
let percentChar = "%";

multicore-sys-monitor@ccadeptic23/files/multicore-sys-monitor@ccadeptic23/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### v3.8.3~20260314
2+
* Bug fix: The units of measurement for used memory and available memory are now correct.
3+
14
### v3.8.2~20260314
25
* Adds option 'Enable Swap' in the Memory tab.
36

multicore-sys-monitor@ccadeptic23/files/multicore-sys-monitor@ccadeptic23/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"uuid": "multicore-sys-monitor@ccadeptic23",
33
"name": "Multi-Core System Monitor",
4-
"version": "3.8.2",
4+
"version": "3.8.3",
55
"description": "Displays in realtime the cpu usage for each core/cpu and overall memory usage.",
66
"multiversion": true,
77
"cinnamon-version": [

0 commit comments

Comments
 (0)