mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 00:46:44 +01:00
Fix conversione in GB per limiti sullo spazio
This commit is contained in:
parent
d80c91c99e
commit
565e4c7c86
@ -576,7 +576,7 @@ if (!Auth::check() && (!empty($messages['info']) || !empty($messages['warning'])
|
||||
// Messaggio informativo per l'esaurimento dello spazio totale disponibile nel server
|
||||
$free_space = disk_free_space('.');
|
||||
$space_limit = 1; // GB
|
||||
if ($free_space < ($space_limit * 1024 ^ 3)) {
|
||||
if ($free_space < ($space_limit * (1024 ** 3))) {
|
||||
echo '
|
||||
<div class="callout callout-warning">
|
||||
<h4>
|
||||
|
@ -44,7 +44,7 @@ class SpaceHook extends CachedManager
|
||||
|
||||
$soft_quota = (float) setting('Soft quota'); // Impostazione in GB
|
||||
$space_limit = ($soft_quota / 100) * 95; // 95% dello spazio indicato
|
||||
$space_limit = $space_limit * 1024 ^ 3; // Trasformazione in GB
|
||||
$space_limit = $space_limit * (1024 ** 3); // Trasformazione in GB
|
||||
|
||||
$message = tr('Attenzione: occupati _TOT_ dei _QUOTA_ previsti', [
|
||||
'_TOT_' => FileSystem::formatBytes($osm_size),
|
||||
|
Loading…
x
Reference in New Issue
Block a user