cpuTemperature() improved tdie detection (linus)
This commit is contained in:
parent
f98c463d0d
commit
a3747ff048
@ -47,10 +47,13 @@ We had to make **several interface changes** to keep systeminformation as consis
|
||||
- `cpu()`: added virtualization if cpu supports virtualization
|
||||
- `cpu()`: now flags are part of this function
|
||||
- `cpuTemperature()` added added socket and chipset temp (linux)
|
||||
- `disksIO()` added wait time (linux)
|
||||
- `diskLayout()`: added USB drives (mac OS)
|
||||
- `diskLayout()`: added S.M.R.R.T. (win)
|
||||
- `fsSize()`: added available
|
||||
- `fsSize()`: improved calculation of used
|
||||
- `getData()`: support for passing parameters and filters (see section General / getData)
|
||||
- `graphics()`: extended properties (mac OS)
|
||||
- `graphics()`: extended nvidia-smi parsing
|
||||
- `networkInterfaces()`: type detection improved (win - wireless)
|
||||
- `memLayout()`: extended manufacturer list (decoding)
|
||||
@ -77,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 5.9.3 | 2021-09-17 | `cpuTemperature()` improved tdie detection (linus) |
|
||||
| 5.9.2 | 2021-09-16 | `graohics()` (macOS), `memLayout()` (win) improvements |
|
||||
| 5.9.1 | 2021-09-15 | `diskLayout()` fix size (macOS) |
|
||||
| 5.9.0 | 2021-09-15 | `graphics()` new XML parser, added properties (macOS) |
|
||||
|
||||
@ -178,6 +178,7 @@
|
||||
<li><span class="code">fsSize()</span>: added <span class="code">available</span></li>
|
||||
<li><span class="code">fsSize()</span>: improved calculation of <span class="code">used</span></li>
|
||||
<li><span class="code">getData()</span>: support for passing parameters and filters (see <a href="general.html">section General / getData</a>)</li>
|
||||
<li><span class="code">graphics()</span>: extended properties macOS</li>
|
||||
<li><span class="code">graphics()</span>: extended nvidia-smi parsing</li>
|
||||
<li><span class="code">networkInterfaces()</span>: type detection improved (win - wireless)</li>
|
||||
<li><span class="code">memLayout()</span>: extended manufacturer list (decoding)</li>
|
||||
|
||||
@ -56,6 +56,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.9.3</th>
|
||||
<td>2021-09-17</td>
|
||||
<td><span class="code">cpuTemperature()</span> improvement tdie detection (linux)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.9.2</th>
|
||||
<td>2021-09-16</td>
|
||||
|
||||
@ -170,7 +170,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span> </div>
|
||||
<div class="version">New Version: <span id="version">5.9.2</span></div>
|
||||
<div class="version">New Version: <span id="version">5.9.3</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">
|
||||
@ -203,7 +203,7 @@
|
||||
</div>
|
||||
<div class="row number-section">
|
||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||
<div class="numbers">14,629</div>
|
||||
<div class="numbers">14,645</div>
|
||||
<div class="title">Lines of code</div>
|
||||
</div>
|
||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||
|
||||
@ -967,7 +967,12 @@ function cpuTemperature(callback) {
|
||||
const cmd = 'for mon in /sys/class/hwmon/hwmon*; do for label in "$mon"/temp*_label; do if [ -f $label ]; then value=$(echo $label | rev | cut -c 7- | rev)_input; if [ -f "$value" ]; then echo $(cat "$label")___$(cat "$value"); fi; fi; done; done;';
|
||||
try {
|
||||
exec(cmd, function (error, stdout) {
|
||||
let lines = stdout.toString().split('\n');
|
||||
stdout = stdout.toString();
|
||||
const tdiePos = stdout.toLowerCase().indexOf('tdie');
|
||||
if (tdiePos !== -1) {
|
||||
stdout = stdout.substring(tdiePos);
|
||||
}
|
||||
let lines = stdout.split('\n');
|
||||
lines.forEach(line => {
|
||||
const parts = line.split('___');
|
||||
const label = parts[0];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user