mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=3505
This commit is contained in:
parent
758d73a89c
commit
4188f66bf7
|
@ -13014,3 +13014,8 @@ Karl 2004-04-04
|
|||
py/Boinc/
|
||||
setup_project.py
|
||||
|
||||
- changed the default delay between requests for ResultMeter from 0.1 to
|
||||
0.5 - this should help MySQL servers that disconnect under load. Also
|
||||
added a message on how to change it.
|
||||
|
||||
test/tesetbase.py
|
||||
|
|
|
@ -631,8 +631,14 @@ class Work:
|
|||
|
||||
run_tool(cmd)
|
||||
|
||||
RESULT_METER_DELAY = 0.5
|
||||
# Note: if test script errors with:
|
||||
# _mysql_exceptions.OperationalError: 2013, 'Lost connection to MySQL server
|
||||
# during query'
|
||||
# Then your mysql server can't handle the load -- increase the RESULT_METER_DELAY
|
||||
|
||||
class ResultMeter:
|
||||
def __init__(self, func, args=[], delay=.1):
|
||||
def __init__(self, func, args=[], delay=RESULT_METER_DELAY):
|
||||
'''Forks to print a progress meter'''
|
||||
self.pid = os.fork()
|
||||
if self.pid:
|
||||
|
|
Loading…
Reference in New Issue