1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-15 06:32:16 +00:00

remove profiling on folder scan method and more reasonable uwsgi ini

file
This commit is contained in:
Emory P 2013-12-14 17:15:39 -05:00
parent d49af86c17
commit 99745f4624
2 changed files with 6 additions and 7 deletions

View File

@ -8,8 +8,6 @@ import math
import sys, traceback import sys, traceback
from web import app from web import app
from profilehooks import profile
class Scanner: class Scanner:
def __init__(self, session): def __init__(self, session):
self.__session = session self.__session = session
@ -80,7 +78,6 @@ class Scanner:
self.__cleanup_folder(folder) self.__cleanup_folder(folder)
@profile
def __scan_file(self, path, folder): def __scan_file(self, path, folder):
curmtime = int(math.floor(os.path.getmtime(path))) curmtime = int(math.floor(os.path.getmtime(path)))

View File

@ -1,10 +1,12 @@
[uwsgi] [uwsgi]
socket = /tmp/supysonic.sock socket = /tmp/supysonic.sock
wsgi-file = /home/emory/supysonic/main.wsgi wsgi-file = main.wsgi
master = true master = true
processes = 4
threads = 2
uid = 1000
vacuum = true vacuum = true
chmod-socket = 666 chmod-socket = 666
touch-reload = /tmp/supysonic.reload
enable-threads = true
processes = 8
harakiri = 60
daemonize