[*] small fix

This commit is contained in:
rsgrinko committed 2023-03-07 23:53:56 +03:00
1 parent 74b0b617a8
commit 913f51ddd1
3 files changed
+7 -17

No files matched your search

+1 -16
View File
@@ -110,21 +110,6 @@
</div> </div>
</div> </div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-primary">
<div class="panel-heading">
<h4 class="panel-title">Текущая нагрузка на диспетчер очереди</h4>
<p>Чем больше количество активных воркеров - тем больше нагрузка</p>
</div><!-- panel-heading -->
<div class="panel-body" id="progress">
<div class="preloader"></div>
</div>
</div>
</div>
</div>
<!-- table --> <!-- table -->
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
@@ -175,7 +160,7 @@
data = JSON.parse(data); data = JSON.parse(data);
$('#info_threads').html(data.info_threads); $('#info_threads').html(data.info_threads);
$('#info_threads_history').html(data.info_threads_history); $('#info_threads_history').html(data.info_threads_history);
$('#progress').html(data.progress); //$('#progress').html(data.progress);
$('#memory').html(data.memory); $('#memory').html(data.memory);
$('#threads_table').html(data.threads); $('#threads_table').html(data.threads);
$('#threads_history_table').html(data.threads_history); $('#threads_history_table').html(data.threads_history);
+1 -1
View File
@@ -55,7 +55,7 @@
*/ */
public static function logToFile( public static function logToFile(
string $message, string $message,
string $filename = '', string $filename = 'core.log',
$content = null, $content = null,
int $priority = LOG_DEBUG, int $priority = LOG_DEBUG,
string $system = null, string $system = null,
+5
View File
@@ -35,6 +35,11 @@
SystemFunctions::sendTelegram('test task was completed'); SystemFunctions::sendTelegram('test task was completed');
} }
public static function testSleep(int $sec = 1) {
sleep($sec);
return 'sleep ' . $sec . ' sec.';
}
/** /**
* @throws CoreException * @throws CoreException
*/ */