revert: Revert port change to 8000

This commit is contained in:
2025-10-31 10:12:39 +01:00
parent 9498c2dcc2
commit e03d50ed5b
3 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ import http.server
import socketserver import socketserver
import json import json
PORT = 8080 PORT = 8000
class SystemInfoHandler(http.server.SimpleHTTPRequestHandler): class SystemInfoHandler(http.server.SimpleHTTPRequestHandler):
def do_OPTIONS(self): def do_OPTIONS(self):

View File

@@ -37,7 +37,7 @@
<script> <script>
function fetchStats() { function fetchStats() {
fetch('http://localhost:8080/stats') fetch('http://localhost:8000/stats')
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
document.getElementById('cpu-usage').textContent = `${data.cpu_percent}%`; document.getElementById('cpu-usage').textContent = `${data.cpu_percent}%`;

View File

@@ -36,7 +36,7 @@
<script> <script>
function fetchStats() { function fetchStats() {
fetch('http://localhost:8080/stats') fetch('http://localhost:8000/stats')
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
document.getElementById('cpu-usage').textContent = `${data.cpu_percent}%`; document.getElementById('cpu-usage').textContent = `${data.cpu_percent}%`;