minor refactoring

This commit is contained in:
Miroslav Stampar
2012-04-05 12:55:26 +00:00
parent 02924eb345
commit 2223c884e5
3 changed files with 9 additions and 2 deletions

View File

@@ -28,7 +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))
query = agent.adjustSleepTime(query)
threadData = getCurrentThreadData()
if Backend.isDbms(DBMS.ORACLE) and query.startswith("SELECT ") and " FROM " not in query: