From a221555ad4e384a907696a887c47380263230a69 Mon Sep 17 00:00:00 2001 From: Dmitry Sidorov Date: Fri, 8 Jul 2016 02:08:27 +0300 Subject: [PATCH 1/1] Bugfix. Data must be shown even there is no any packets sent or received. --- widgets/net.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/widgets/net.lua b/widgets/net.lua index ee2cfa7..1883168 100644 --- a/widgets/net.lua +++ b/widgets/net.lua @@ -128,12 +128,12 @@ local function worker(args) net_now.sent = string.gsub(string.format('%.1f', net_now.sent), ',', '.') net_now.received = string.gsub(string.format('%.1f', net_now.received), ',', '.') - widget = net.widget - settings() - net.last_t = total_t net.last_r = total_r end + + widget = net.widget + settings() end helpers.newtimer(iface, timeout, update) -- 2.39.5