fix(server.py): fix placeholder naming to be consistent
This commit is contained in:
@@ -25,7 +25,7 @@ class BackendServer:
|
|||||||
"platform": "windows 11",
|
"platform": "windows 11",
|
||||||
"cpu_info": "i7",
|
"cpu_info": "i7",
|
||||||
},
|
},
|
||||||
"polled": {"cpu_usage": 0, "mem_usage": 0},
|
"polled": {"cpu_usage": 0, "ram_usage": 0},
|
||||||
"ondemand": {},
|
"ondemand": {},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,8 +38,8 @@ class BackendServer:
|
|||||||
def _poll_loop(self) -> None:
|
def _poll_loop(self) -> None:
|
||||||
while self.running:
|
while self.running:
|
||||||
for client in self.clients.values():
|
for client in self.clients.values():
|
||||||
client["polled"]["cpu"] = round(rn.uniform(0, 100), 1)
|
client["polled"]["cpu_usage"] = round(rn.uniform(0, 100), 1)
|
||||||
client["polled"]["ram"] = round(rn.uniform(0, 100), 1)
|
client["polled"]["ram_usage"] = round(rn.uniform(0, 100), 1)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
def get_client_data(
|
def get_client_data(
|
||||||
|
|||||||
Reference in New Issue
Block a user