feat: enhance server stats widgets and fix TypeScript/ESLint errors #394

Merged
ZacharyZcR merged 50 commits from feature-server-stats-customization into dev-1.8.0 2025-10-10 03:48:34 +00:00
Showing only changes of commit a7086aa0a8 - Show all commits

View File

@@ -61,7 +61,7 @@ class SSHConnectionPool {
return client;
}
return new Promise((resolve, _reject) => {
return new Promise((resolve) => {
const checkAvailable = () => {
const available = connections.find((conn) => !conn.inUse);
if (available) {
@@ -1127,8 +1127,6 @@ async function pollStatusesOnce(userId?: string): Promise<void> {
return;
}
const now = new Date().toISOString();
const checks = hosts.map(async (h) => {
const isOnline = await tcpPing(h.ip, h.port, 5000);
const now = new Date().toISOString();