hammerspoon
hammerspoon copied to clipboard
ping time increases over time
I've been trying to use the hs.network.ping function to do periodic pings but strangely the reported ping times seem to slowly increase (over an hour it increases by about 3-4ms) as compared to running the ping command from a terminal window?
Here's an example:
local function handlePing(obj, msg, ...)
if msg == "didFinish" then
print(obj:summary())
end
end
local function runPingTest()
local p = hs.network.ping('1.1.1.1', 4, 1.0, 1.5, handlePing)
end
pingtesttimer = hs.timer.doEvery(5, runPingTest)
This is with Hammerspoon: 0.9.97 (6267) on MacOS 11.6.7