minor update

This commit is contained in:
Miroslav Stampar 2012-04-04 23:37:50 +00:00
parent b1dd03731a
commit e0994947e2
2 changed files with 2 additions and 2 deletions

View File

@ -502,8 +502,6 @@ class Connect:
string match check ('--string' command line parameter)
"""
value = value.replace("[SLEEPTIME]", str(conf.timeSec)) if value else value
if conf.direct:
return direct(value, content)
@ -523,6 +521,7 @@ class Connect:
raise404 = place != PLACE.URI if raise404 is None else raise404
value = value.replace("[SLEEPTIME]", str(conf.timeSec)) if value else value
payload = agent.extractPayload(value)
threadData = getCurrentThreadData()

View File

@ -28,6 +28,7 @@ from lib.utils.timeout import timeout
def direct(query, content=True):
select = True
query = agent.payloadDirect(query)
query = query.replace("[SLEEPTIME]", str(conf.timeSec))
threadData = getCurrentThreadData()
if Backend.isDbms(DBMS.ORACLE) and query.startswith("SELECT ") and " FROM " not in query: