revert: Revert port change to 8000
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
@@ -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}%`;
|
||||||
|
|||||||
@@ -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}%`;
|
||||||
|
|||||||
Reference in New Issue
Block a user