Added more CPU information the CPU page
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Gregory Ballantine 2022-08-23 18:45:53 -04:00
parent a57ce3dc94
commit 4d4c5b2f16
2 changed files with 23 additions and 2 deletions

View File

@ -7,7 +7,9 @@ window.onload = () ->
document.getElementById('cpuInfo').innerText = data.brand document.getElementById('cpuInfo').innerText = data.brand
document.getElementById('cpuCores').innerText = data.physicalCores document.getElementById('cpuCores').innerText = data.physicalCores
document.getElementById('cpuThreads').innerText = data.cores 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) -> ).catch((error) ->
console.error(error) console.error(error)
) )

View File

@ -15,7 +15,26 @@
<section class="row"> <section class="row">
<article class="columns eight"> <article class="columns eight">
<h5>CPU Model: <span id="cpuInfo">Random CPU</span></h5> <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>&deg;C</p> <p>CPU temperature: <span id="cpuTemp">12</span>&deg;C</p>
</article> </article>