fsSize() fix mount points issue - wip

This commit is contained in:
Sebastian Hildebrandt 2026-01-01 16:47:40 +01:00
parent af4504fddc
commit 85f61fa2cf
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ function parseWinBatteryPart(lines, designedCapacity, fullChargeCapacity) {
// 10 = "Undefined"
// 11 = "Partially Charged"
if (status >= 0) {
const statusValue = status ? parseInt(status) : 0;
const statusValue = status;
result.status = statusValue;
result.hasBattery = true;
result.maxCapacity = fullChargeCapacity || parseInt(util.getValue(lines, 'DesignCapacity', ':') || 0);

View File

@ -101,7 +101,7 @@ function fsSize(drive, callback) {
const rw = osMounts && Object.keys(osMounts).length > 0 ? osMounts[fs] || false : null;
line.splice(0, _linux || _freebsd || _openbsd || _netbsd ? 6 : 5);
const mount = line.join(' ');
if (!data.find((el) => el.fs === fs && el.type === fsType)) {
if (!data.find((el) => el.fs === fs && el.type === fsType && el.mount === mount)) {
data.push({
fs,
type: fsType,