Revision 0c3a7a05
Added by Phil Davis almost 12 years ago
etc/inc/config.console.inc | ||
---|---|---|
51 | 51 |
$fp = fopen('php://stdin', 'r'); |
52 | 52 |
|
53 | 53 |
$memory = get_memory(); |
54 |
$avail = $memory[1]; |
|
54 |
$physmem = $memory[0]; |
|
55 |
$realmem = $memory[1]; |
|
55 | 56 |
|
56 |
if($avail < $g['minimum_ram_warning']) {
|
|
57 |
if($physmem < $g['minimum_ram_warning']) {
|
|
57 | 58 |
echo "\n\n\n"; |
58 | 59 |
echo gettext("DANGER! WARNING! ACHTUNG!") . "\n\n"; |
59 | 60 |
printf(gettext("%s requires *AT LEAST* %s RAM to function correctly.%s"), $g['product_name'], $g['minimum_ram_warning_text'], "\n"); |
60 |
printf(gettext("Only (%s) MB RAM has been detected.%s"), $avail, "\n");
|
|
61 |
printf(gettext("Only (%s) MB RAM has been detected, with (%s) available to %s.%s"), $realmem, $physmem, $g['product_name'], "\n");
|
|
61 | 62 |
echo "\n" . gettext("Press ENTER to continue.") . " "; |
62 | 63 |
fgets($fp); |
63 | 64 |
echo "\n"; |
Also available in: Unified diff
Use updated get_memory var names
Backport to 2.1