Added more CPU information the CPU page
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
a57ce3dc94
commit
4d4c5b2f16
@ -7,7 +7,9 @@ window.onload = () ->
|
||||
document.getElementById('cpuInfo').innerText = data.brand
|
||||
document.getElementById('cpuCores').innerText = data.physicalCores
|
||||
document.getElementById('cpuThreads').innerText = data.cores
|
||||
document.getElementById('cpuClock').innerText = data.speed
|
||||
document.getElementById('cpuClockBase').innerText = data.speed
|
||||
document.getElementById('cpuClockBoost').innerText = data.speedMax
|
||||
console.log(data)
|
||||
).catch((error) ->
|
||||
console.error(error)
|
||||
)
|
||||
|
@ -15,7 +15,26 @@
|
||||
<section class="row">
|
||||
<article class="columns eight">
|
||||
<h5>CPU Model: <span id="cpuInfo">Random CPU</span></h5>
|
||||
<p><span id="cpuCores">2</span>c/<span id="cpuThreads">4</span>t @ <span id="cpuClock">2.0</span>Ghz</p>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Physical cores</td>
|
||||
<td><span id="cpuCores">2</span> cores</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Logical threads</td>
|
||||
<td><span id="cpuThreads">4</span> threads</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Base clock</td>
|
||||
<td><span id="cpuClockBase">2.0</span>Ghz</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Boost clock</td>
|
||||
<td><span id="cpuClockBoost">2.0</span>Ghz</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>CPU temperature: <span id="cpuTemp">12</span>°C</p>
|
||||
</article>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user