Added qty of connected and offline to the hosts dashboard page

This commit is contained in:
Muhammad Ibrahim
2025-10-15 22:40:52 +01:00
parent 5b77a1328d
commit c43afeb127
3 changed files with 98 additions and 18 deletions

View File

@@ -333,7 +333,7 @@ router.get("/overview", authenticateToken, async (_req, res) => {
{
name: "Collect Host Statistics",
queue: QUEUE_NAMES.AGENT_COMMANDS,
description: "Collects package statistics from all connected agents",
description: "Collects package statistics from connected agents only",
schedule: `Every ${settings.update_interval} minutes (Agent-driven)`,
lastRun: recentJobs[3][0]?.finishedOn
? new Date(recentJobs[3][0].finishedOn).toLocaleString()