diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-05 00:10:47 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-05 00:13:38 +0200 |
commit | d81eed6d310bce28b3709980d80c433a04eefaae (patch) | |
tree | 3ab65939b04a86d22e39ad6a4a5ac3ab122257b8 /volume.lua | |
parent | c2b68ad3e78e366e611600f54dcfa8d760ed026f (diff) | |
download | vicious-legacy-d81eed6d310bce28b3709980d80c433a04eefaae.tar.xz |
Lots of coding style changes
Diffstat (limited to 'volume.lua')
-rw-r--r-- | volume.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -24,13 +24,13 @@ local function worker(format, channel) local mixer = f:read("*all") f:close() - local volume_level = string.match(mixer, "([%d]?[%d]?[%d])%%") + local vol = string.match(mixer, "([%d]?[%d]?[%d])%%") -- If muted return 0 (not "Mute") so we dont break progressbars - if string.find(mixer, "%[off%]") or volume_level == nil then - volume_level = 0 + if string.find(mixer, "%[off%]") or vol == nil then + vol = 0 end - return {volume_level} + return {vol} end -- }}} |