diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-14 17:25:23 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-14 17:25:23 +0200 |
commit | 2a5126f4f0c0a3e073becb98f49499363072643d (patch) | |
tree | cd9e79c76420d01c94544ce039a6a73eb667e4e5 /volume.lua | |
parent | 4f3599db00b3a55a0ff6e52530bdad282e97f8f3 (diff) | |
download | vicious-legacy-2a5126f4f0c0a3e073becb98f49499363072643d.tar.xz |
General cleanup
Diffstat (limited to 'volume.lua')
-rw-r--r-- | volume.lua | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -21,13 +21,10 @@ local function worker(format, channel) local mixer = f:read("*all") f:close() - -- Get volume level local volume_level = string.match(mixer, "([%d]?[%d]?[%d])%%") -- Don't break progressbars - if volume_level == nil then - return {0} - end + if volume_level == nil then return {0} end return {volume_level} end |