]> git.madduck.net Git - etc/awesome.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

forgoten brackets at rule
authorAndrej Kouřil <andering@gmail.com>
Mon, 28 Mar 2016 15:22:40 +0000 (17:22 +0200)
committerAndrej Kouřil <andering@gmail.com>
Mon, 28 Mar 2016 15:22:40 +0000 (17:22 +0200)
widgets/bat.lua

index 9ab4ce683e91f33c71fbbd13e0123ea3687ec3d0..61ad6a33ebb5b8a722e18d5329887fe81b1741c6 100644 (file)
@@ -85,11 +85,11 @@ local function worker(args)
                        bat_now.ac_status     = first_line(astr .. "/online") or "N/A"
 
                        -- if rate = 0 or rate not defined skip the round
                        bat_now.ac_status     = first_line(astr .. "/online") or "N/A"
 
                        -- if rate = 0 or rate not defined skip the round
-                       if      not (rate_power and rate_power > 0) and 
+                       if      not (rate_power and rate_power > 0) and
                                not (rate_current and  rate_current > 0) and
                                not (rate_current and  rate_current > 0) and
-                               not bat_now.status == "Full"
+                               not (bat_now.status == "Full")
                        then
                        then
-                               return 
+                               return
                        end
                        
                        local rate_time = 0
                        end
                        
                        local rate_time = 0