mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Config/Profiler
* update config to enable/disable profiler in general, instead of just the queue * regenerate affected files on config change
This commit is contained in:
4
prQueue
4
prQueue
@@ -41,8 +41,8 @@ $error = function ($type, $typeId, $realmId)
|
||||
};
|
||||
|
||||
|
||||
// if (CFG_PROFILER_QUEUE) - wont work because it is not redefined if changed in config
|
||||
while (DB::Aowow()->selectCell('SELECT value FROM ?_config WHERE `key` = "profiler_queue"'))
|
||||
// if (CFG_PROFILER_ENABLE) - wont work because it is not redefined if changed in config
|
||||
while (DB::Aowow()->selectCell('SELECT value FROM ?_config WHERE `key` = "profiler_enable"'))
|
||||
{
|
||||
if (($tDiff = (microtime(true) - $tCycle)) < (CFG_PROFILER_QUEUE_DELAY / 1000))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user