cpuTemperature() fixed issue windows
This commit is contained in:
parent
1564a78d9f
commit
ffa1a4e6a9
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 4.26.11 | 2020-08-20 | `cpuTemperature()` fixed issue windows |
|
||||
| 4.26.10 | 2020-07-16 | `networkStats()` fixed issue blocking windows |
|
||||
| 4.26.9 | 2020-06-06 | `networkStats()` fixed comparison issue windows |
|
||||
| 4.26.8 | 2020-06-06 | `networkInterfaces()` fixed caching issue |
|
||||
|
||||
@ -83,6 +83,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">4.26.11</th>
|
||||
<td>2020-08-20</td>
|
||||
<td><span class="code">cpuTemperature()</span> fixed issue windows</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.26.10</th>
|
||||
<td>2020-07-16</td>
|
||||
|
||||
@ -168,7 +168,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span></div>
|
||||
<div class="version">Current Version: <span id="version">4.26.10</span></div>
|
||||
<div class="version">Current Version: <span id="version">4.26.11</span></div>
|
||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||
</div>
|
||||
<div class="down">
|
||||
@ -207,7 +207,7 @@
|
||||
<div class="title">Downloads last month</div>
|
||||
</div>
|
||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||
<div class="numbers">304</div>
|
||||
<div class="numbers">328</div>
|
||||
<div class="title">Dependends</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -784,6 +784,7 @@ function cpuTemperature(callback) {
|
||||
}
|
||||
if (callback) { callback(result); }
|
||||
resolve(result);
|
||||
return;
|
||||
}
|
||||
}
|
||||
exec('sensors', function (error, stdout) {
|
||||
@ -819,6 +820,7 @@ function cpuTemperature(callback) {
|
||||
if (result.main !== -1.0 || result.max !== -1.0) {
|
||||
if (callback) { callback(result); }
|
||||
resolve(result);
|
||||
return;
|
||||
}
|
||||
}
|
||||
fs.stat('/sys/class/thermal/thermal_zone0/temp', function (err) {
|
||||
|
||||
@ -62,7 +62,7 @@ function dockerInfo(callback) {
|
||||
result.cgroupDriver = data.CgroupDriver;
|
||||
result.nEventsListener = data.NEventsListener;
|
||||
result.kernelVersion = data.KernelVersion;
|
||||
result.pperatingSystem = data.OperatingSystem;
|
||||
result.operatingSystem = data.OperatingSystem;
|
||||
result.osType = data.OSType;
|
||||
result.architecture = data.Architecture;
|
||||
result.ncpu = data.NCPU;
|
||||
|
||||
@ -586,13 +586,13 @@ function getLinuxIfaceDHCPstatus(iface, connectionName, DHCPNics) {
|
||||
|
||||
let dhcStatus = resultFormat.split(' ').slice(1).toString();
|
||||
switch (dhcStatus) {
|
||||
case 'auto':
|
||||
result = true;
|
||||
break;
|
||||
case 'auto':
|
||||
result = true;
|
||||
break;
|
||||
|
||||
default:
|
||||
result = false;
|
||||
break;
|
||||
default:
|
||||
result = false;
|
||||
break;
|
||||
}
|
||||
return result;
|
||||
} catch (e) {
|
||||
@ -679,7 +679,7 @@ function testVirtualNic(iface, ifaceName, mac) {
|
||||
|
||||
function networkInterfaces(callback, rescan = true) {
|
||||
|
||||
if (typeof callback === "boolean") {
|
||||
if (typeof callback === 'boolean') {
|
||||
rescan = callback;
|
||||
callback = null;
|
||||
}
|
||||
|
||||
@ -324,8 +324,7 @@ function isUefiLinux() {
|
||||
fs.stat('/sys/firmware/efi', function (err) {
|
||||
if (!err) {
|
||||
resolve(true);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
resolve(false);
|
||||
}
|
||||
});
|
||||
@ -341,6 +340,7 @@ function isUefiWindows() {
|
||||
if (!error) {
|
||||
const line = stdout.toString().split('\n\r')[0];
|
||||
resolve(line.toLowerCase().indexOf('uefi') >= 0);
|
||||
return;
|
||||
}
|
||||
resolve(false);
|
||||
});
|
||||
|
||||
@ -332,7 +332,11 @@ function powerShell(cmd) {
|
||||
process.nextTick(() => {
|
||||
try {
|
||||
const child = spawn('powershell.exe', ['-NoLogo', '-InputFormat', 'Text', '-NoExit', '-ExecutionPolicy', 'Unrestricted', '-Command', '-'], {
|
||||
stdio: 'pipe'
|
||||
stdio: 'pipe',
|
||||
windowsHide: true,
|
||||
maxBuffer: 1024 * 20000,
|
||||
encoding: 'UTF-8',
|
||||
env: util._extend({}, process.env, { LANG: 'en_US.UTF-8' })
|
||||
});
|
||||
|
||||
if (child && !child.pid) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user