revert: Revert port change to 8000
This commit is contained in:
@@ -3,7 +3,7 @@ import http.server
|
||||
import socketserver
|
||||
import json
|
||||
|
||||
PORT = 8080
|
||||
PORT = 8000
|
||||
|
||||
class SystemInfoHandler(http.server.SimpleHTTPRequestHandler):
|
||||
def do_OPTIONS(self):
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
<script>
|
||||
function fetchStats() {
|
||||
fetch('http://localhost:8080/stats')
|
||||
fetch('http://localhost:8000/stats')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
document.getElementById('cpu-usage').textContent = `${data.cpu_percent}%`;
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
<script>
|
||||
function fetchStats() {
|
||||
fetch('http://localhost:8080/stats')
|
||||
fetch('http://localhost:8000/stats')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
document.getElementById('cpu-usage').textContent = `${data.cpu_percent}%`;
|
||||
|
||||
Reference in New Issue
Block a user