Rename CpuTab to a more general Engine

And make the CPU load visible
This commit is contained in:
Alessandro Pignotti 2024-10-15 21:33:15 +02:00
parent 0f30d2273a
commit 307669f7c4
2 changed files with 6 additions and 1 deletions

View file

@ -1,4 +1,8 @@
<h1 class="text-lg font-bold">CPU</h1>
<script>
import { cpuPercentage } from './activities.js'
</script>
<h1 class="text-lg font-bold">Engine</h1>
<p>CPU Load: <span class="font-bold">{$cpuPercentage}%</span></p>
<p>WebVM is powered by CheerpX, a x86 virtualization engine in WebAssembly</p>
<p>CheerpX can run securely run unmodified x86 binaries and libraries in the browser</p>
<p>For more information: <a class="text-gray-300" href="https://cheerpx.io/" target="_blank">https://cheerpx.io</a></p>

View file

@ -2,3 +2,4 @@ import { writable } from 'svelte/store';
export const cpuActivity = writable(false);
export const diskActivity = writable(false);
export const cpuPercentage = writable(0);