1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-14 22:22:18 +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
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)))

View File

@ -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