diff options
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | process.py | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -1 +1 @@ -Some more or less useful scripts/patches/configs. +Some more or less useful scripts, dotfiles, etc. @@ -5,6 +5,7 @@ import os start_pids = [pid for pid in os.listdir('/proc') if pid.isdigit()] print 'PIDs', str(start_pids) +# we don't do an active sleep here, results in slightly increasing usage for one of your CPU cores while True: cur_pids = [pid for pid in os.listdir('/proc') if pid.isdigit()] for pid in cur_pids: |