fix(devices): enrich last_seen from Flow and align Active status threshold with collector interval

This commit is contained in:
ypratama committed 2026-11-09 15:30:32 +07:00
1 parent 4421b15393
commit fc441e4f1f
5 files changed
+33 -7

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ async function collectDevicesAndApps(agentUuid, timestamp, SITE_UUID, backone, l
device_label, device_type,
os_label, manufacturer,
download: d.download || 0, upload: d.upload || 0, flows: d.flows || 0,
last_seen: d.last_seen,
last_seen: d.last_seen || timestamp.toISOString(),
};
}).filter(d => d.ip_address && ipMatchesSubnets(d.ip_address, allowedSubnets));