fix ping requests, jurastically improve file browser

This commit is contained in:
KingKDot
2026-03-13 13:33:39 -05:00
parent 3beef903c9
commit bcc5c27317
9 changed files with 320 additions and 19 deletions
+7 -8
View File
@@ -136,14 +136,13 @@ export function handlePong(info: ClientInfo, payload: WireMessage) {
if (rtt >= 0 && rtt < maxRttMs) {
info.pingMs = rtt;
if (shouldSyncClientToDb(info.id, nowTs)) {
upsertClientRow({
id: info.id,
pingMs: info.pingMs,
lastSeen: info.lastSeen,
online: 1,
});
}
upsertClientRow({
id: info.id,
pingMs: info.pingMs,
lastSeen: info.lastSeen,
online: 1,
});
lastClientDbSync.set(info.id, nowTs);
metrics.recordPing(rtt);
} else {