Skip to content

Commit

Permalink
Oops, brainfart
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLuJe committed Feb 20, 2023
1 parent 9b4aae9 commit 1c1cff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/device/generic/device.lua
Original file line number Diff line number Diff line change
Expand Up @@ -841,13 +841,13 @@ function Device:retrieveNetworkInfo()
if default_gw then
local ok, rtt = self:ping4(default_gw)
if ok then
local rtt = string.format("%.3f", rtt * 1/1000) -- i.e., time.to_ms w/o flooring
rtt = string.format("%.3f", rtt * 1/1000) -- i.e., time.to_ms w/o flooring
table.insert(results, _("Gateway ping successful"))
table.insert(results, T(_("RTT: %1 ms"), rtt))
else
table.insert(results, _("Gateway ping FAILED"))
if rtt then
local rtt = string.format("%.1f", time.to_s(rtt))
rtt = string.format("%.1f", time.to_s(rtt))
table.insert(results, T(_("Timed out after %1 s"), rtt))
end
end
Expand Down

0 comments on commit 1c1cff1

Please sign in to comment.