Bugfix. Data must be shown even there is no any packets sent or received.
This commit is contained in:
parent
cbab9ef81b
commit
a221555ad4
1 changed files with 3 additions and 3 deletions
|
@ -128,12 +128,12 @@ local function worker(args)
|
||||||
net_now.sent = string.gsub(string.format('%.1f', net_now.sent), ',', '.')
|
net_now.sent = string.gsub(string.format('%.1f', net_now.sent), ',', '.')
|
||||||
net_now.received = string.gsub(string.format('%.1f', net_now.received), ',', '.')
|
net_now.received = string.gsub(string.format('%.1f', net_now.received), ',', '.')
|
||||||
|
|
||||||
widget = net.widget
|
|
||||||
settings()
|
|
||||||
|
|
||||||
net.last_t = total_t
|
net.last_t = total_t
|
||||||
net.last_r = total_r
|
net.last_r = total_r
|
||||||
end
|
end
|
||||||
|
|
||||||
|
widget = net.widget
|
||||||
|
settings()
|
||||||
end
|
end
|
||||||
|
|
||||||
helpers.newtimer(iface, timeout, update)
|
helpers.newtimer(iface, timeout, update)
|
||||||
|
|
Loading…
Add table
Reference in a new issue