diff options
author | Tomás Touceda <chiiph@leap.se> | 2014-03-10 17:15:08 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2014-03-10 17:15:08 -0300 |
commit | abfaf49d82215e1b674123cd9a395fa5ac10bc7b (patch) | |
tree | 152b1b2604c507febb3725796fbe5c6883724106 /src/leap/bitmask/app.py | |
parent | b762e09f6f20c07fccc66325079584213388102d (diff) | |
parent | 806fe6f8f6664da99f5405af5a831f0e48e3fe64 (diff) |
Merge remote-tracking branch 'refs/remotes/kali/feature/graph-cpu-and-mem' into develop
Diffstat (limited to 'src/leap/bitmask/app.py')
-rw-r--r-- | src/leap/bitmask/app.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/bitmask/app.py b/src/leap/bitmask/app.py index a1f3a69f..124671b3 100644 --- a/src/leap/bitmask/app.py +++ b/src/leap/bitmask/app.py @@ -233,6 +233,11 @@ def main(): # We don't even have logger configured in here print "Could not ensure server: %r" % (e,) + PLAY_NICE = os.environ.get("LEAP_NICE") + if PLAY_NICE and PLAY_NICE.isdigit(): + nice = os.nice(int(PLAY_NICE)) + logger.info("Setting NICE: %s" % nice) + # And then we import all the other stuff # I think it's safe to import at the top by now -- kali from leap.bitmask.gui import locale_rc |