refactor(discovery): use ping for discovery and fill MAC via SSH
This commit is contained in:
@@ -60,7 +60,7 @@ func (w *Workflow) round() {
|
||||
|
||||
// 1. 扫描(discovery 包),更新设备表
|
||||
cfg := w.cfg
|
||||
discovery.NewScanner(cfg.Scan.CIDR, cfg.Scan.Timeout).Discover()
|
||||
discovery.NewScanner(cfg.Scan.CIDR, cfg.Scan.Timeout, cfg.Scan.Concurrency).Discover()
|
||||
fmt.Printf(" [扫描] 设备 %d 台\n", len(discovery.Devices))
|
||||
|
||||
// 2. 压测未通过设备(stress.TestDevice 执行,report 保存+打印)
|
||||
|
||||
Reference in New Issue
Block a user