diff --git a/scanner.py b/scanner.py index f16aa19..9353beb 100755 --- a/scanner.py +++ b/scanner.py @@ -8,8 +8,6 @@ import math import sys, traceback from web import app -from profilehooks import profile - class Scanner: def __init__(self, session): self.__session = session @@ -80,7 +78,6 @@ class Scanner: self.__cleanup_folder(folder) - @profile def __scan_file(self, path, folder): curmtime = int(math.floor(os.path.getmtime(path))) diff --git a/supysonic.ini b/supysonic.ini index 60fb3a3..3f91760 100755 --- a/supysonic.ini +++ b/supysonic.ini @@ -1,10 +1,12 @@ [uwsgi] socket = /tmp/supysonic.sock - wsgi-file = /home/emory/supysonic/main.wsgi + wsgi-file = main.wsgi master = true - processes = 4 - threads = 2 - uid = 1000 vacuum = true chmod-socket = 666 + touch-reload = /tmp/supysonic.reload + enable-threads = true + processes = 8 + harakiri = 60 + daemonize