clean up if then

This commit is contained in:
petrucci4prez 2017-07-20 01:02:45 -04:00
parent c4f400c697
commit 09dbbeea85
2 changed files with 2 additions and 2 deletions

2
core

@ -1 +1 @@
Subproject commit 05e90da34584f98a6b7d46f7b22e8701a5b3d285
Subproject commit 5fd6e1b11239b1d24b6c1a18cbfb6c7f876acc96

View File

@ -234,7 +234,7 @@ local update = function(cr)
-- no optirun processes, we call this "Mixed." In this case we don't
-- check anything (to allow bbswitch to actually switch off) and set all
-- values to N/A and 0.
if __string_find(Util.execute_cmd('ps -A -o comm'), 'optirun') == nil then
if not __string_find(Util.execute_cmd('ps -A -o comm'), 'optirun') then
Text.set(status.value, cr, 'Mixed')
nvidia_off(cr)
else