Test

System Monitoring Tool

<p>System Speed: <span id="systemSpeed"></span> GHz</p>
<p>Network Speed: <span id="networkSpeed"></span> Mbps</p>
<p>RAM Utilization: <span id="ramUtilization"></span>%</p>

<button onclick="updateSystemInfo()">Update</button>

<script>
    function updateSystemInfo() {
        // Simulate system data (replace with actual system data retrieval)
        const systemSpeed = getRandomNumber(2, 4).toFixed(2); // GHz
        const networkSpeed = getRandomNumber(10, 100).toFixed(2); // Mbps
        const ramUtilization = getRandomNumber(30, 90).toFixed(2); // %

        // Update HTML elements with the simulated data
        document.getElementById('systemSpeed').textContent = systemSpeed;
        document.getElementById('networkSpeed').textContent = networkSpeed;
        document.getElementById('ramUtilization').textContent = ramUtilization;
    }

    function getRandomNumber(min, max) {
        return Math.random() * (max - min) + min;
    }
</script>