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:
parent
d49af86c17
commit
99745f4624
@ -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)))
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user