mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 10:13:15 +02:00
add units to debug message
This commit is contained in:
parent
4569032314
commit
b98419e537
1 changed files with 2 additions and 2 deletions
|
@ -218,11 +218,11 @@ void ScriptEngine::waitTillDoneRunning() {
|
||||||
|
|
||||||
// if we've been waiting for more than 5 seconds then we should be more aggessive about stopping
|
// if we've been waiting for more than 5 seconds then we should be more aggessive about stopping
|
||||||
if (elapsedUsecs > WAITING_TOO_LONG) {
|
if (elapsedUsecs > WAITING_TOO_LONG) {
|
||||||
qCDebug(scriptengine) << "Script " << scriptName << " has been running too long [" << elapsedUsecs << "] quitting.";
|
qCDebug(scriptengine) << "Script " << scriptName << " has been running too long [" << elapsedUsecs << " usecs] quitting.";
|
||||||
thread()->quit();
|
thread()->quit();
|
||||||
break;
|
break;
|
||||||
} else if (elapsedUsecs > MAX_SCRIPT_EVALUATION_TIME) {
|
} else if (elapsedUsecs > MAX_SCRIPT_EVALUATION_TIME) {
|
||||||
qCDebug(scriptengine) << "Script " << scriptName << " has been running too long [" << elapsedUsecs << "] aborting evaluation.";
|
qCDebug(scriptengine) << "Script " << scriptName << " has been running too long [" << elapsedUsecs << " usecs] aborting evaluation.";
|
||||||
QMetaObject::invokeMethod(this, "abortEvaluation");
|
QMetaObject::invokeMethod(this, "abortEvaluation");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue