diff options
| author | ruki <[email protected]> | 2020-02-05 00:39:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-07 22:45:56 +0800 |
| commit | 35b8b34362abe28a638af8ee02d3babe8e3548e2 (patch) | |
| tree | a47c0a1da53fffd81f0aa7832ceb3646950bd08a /xmake/modules/net/ping.lua | |
| parent | 94d3eb649e489a597a2f5d966d2249a9e64d87e3 (diff) | |
uses new runjobs
Diffstat (limited to 'xmake/modules/net/ping.lua')
| -rw-r--r-- | xmake/modules/net/ping.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/net/ping.lua b/xmake/modules/net/ping.lua index 3db973c38..0af576081 100644 --- a/xmake/modules/net/ping.lua +++ b/xmake/modules/net/ping.lua @@ -22,6 +22,7 @@ import("lib.detect.cache") import("detect.tools.find_ping") import("detect.tools.find_nmap") +import("private.async.runjobs") -- send ping to hosts -- @@ -50,7 +51,7 @@ function main(hosts, opt) -- run tasks local results = {} hosts = table.wrap(hosts) - process.runjobs(function (index) + runjobs("ping", function (index) local host = hosts[index] if host then |
