From 84005d16a9c58f385434d3f2e97161ab764b3122 Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Tue, 31 May 2016 10:55:15 +0200 Subject: [PATCH] #199 fix attempt --- widgets/bat.lua | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/widgets/bat.lua b/widgets/bat.lua index 5f049e2..6db5d95 100644 --- a/widgets/bat.lua +++ b/widgets/bat.lua @@ -49,20 +49,20 @@ local function worker(args) bg = "#FFFFFF" } - function update() - bat_now = { - status = "Not present", - ac_status = "N/A", - perc = "N/A", - time = "N/A", - watt = "N/A" - } - - bat_now.n_status = {} - for i = 1, #batteries do - bat_now.n_status[i] = "Not present" - end + bat_now = { + status = "Not present", + ac_status = "N/A", + perc = "N/A", + time = "N/A", + watt = "N/A" + } + bat_now.n_status = {} + for i = 1, #batteries do + bat_now.n_status[i] = "Not present" + end + + function update() local sum_rate_current = 0 local sum_rate_voltage = 0 local sum_rate_power = 0 -- 2.39.5