mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 11:30:55 +01:00
Fix controllo sort_buffer_size
This commit is contained in:
parent
9e291a87a0
commit
8b975a1321
@ -24,7 +24,7 @@ $db_password = '|password|';
|
||||
$db_name = '|database|';
|
||||
//$port = '|port|';
|
||||
$db_options = [
|
||||
//'sort_buffer_size' => '4M',
|
||||
//'sort_buffer_size' => '2M',
|
||||
];
|
||||
|
||||
|
||||
|
@ -190,7 +190,7 @@ if ($database->isInstalled()){
|
||||
|
||||
'sort_buffer_size' => [
|
||||
'type' => 'value',
|
||||
'description' => '>4M',
|
||||
'description' => '>2M',
|
||||
],
|
||||
|
||||
|
||||
@ -202,7 +202,7 @@ if ($database->isInstalled()){
|
||||
case 'sort_buffer_size':
|
||||
$db[$n] = [
|
||||
'type' => 'value',
|
||||
'description' => '>4M',
|
||||
'description' => '>2M',
|
||||
];
|
||||
break;
|
||||
}
|
||||
@ -233,9 +233,9 @@ foreach ($db as $name => $values) {
|
||||
$rs_global_variabile = $dbo->fetchArray('SHOW GLOBAL VARIABLES LIKE '.prepare($name));
|
||||
|
||||
if (!empty($rs_session_variabile[0]['Value']))
|
||||
$inc = \Util\FileSystem::formatBytes($rs_session_variabile[0]['Value']);
|
||||
$inc = $rs_session_variabile[0]['Value'];
|
||||
else if (!empty($rs_global_variabile[0]['Value']))
|
||||
$inc = \Util\FileSystem::formatBytes($rs_global_variabile[0]['Value']);
|
||||
$inc = $rs_global_variabile[0]['Value'];
|
||||
else
|
||||
$inc = str_replace(['k', 'M'], ['000', '000000'], App::getConfig()['db_options'][$name]);
|
||||
|
||||
@ -259,7 +259,7 @@ foreach ($db as $name => $values) {
|
||||
|
||||
$description = tr('Valore consigliato: _VALUE_ (Valore attuale: _INC_)', [
|
||||
'_VALUE_' => $description,
|
||||
'_INC_' => $inc,
|
||||
'_INC_' => \Util\FileSystem::formatBytes($inc),
|
||||
]);
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user