fix(scan): two-phase progress + hosts_processed; clarify status at 99% SNMP tail

Made-with: Cursor
This commit is contained in:
PTah
2026-04-13 13:53:46 +10:00
parent 0de279926f
commit 70fff4f0ea
4 changed files with 93 additions and 18 deletions
+4
View File
@@ -44,6 +44,10 @@ type ScanJob struct {
type ScanStats struct {
HostsTotal int `json:"hosts_total"`
HostsUp int `json:"hosts_up"`
// HostsPingPhaseDone — завершены ping и (если включено) проверка TCP-портов; SNMP ещё может идти.
HostsPingPhaseDone int `json:"hosts_ping_phase_done"`
// HostsProcessed — хост полностью обработан (включая SNMP/LLDP/FDB при необходимости).
HostsProcessed int `json:"hosts_processed"`
}
type ScanUpdate struct {