{ _hp_min_swap = 512Mb }
(_hp_min_swap > 192Mb & disk[_hp_root_disk].size < 1800Mb)
{ _hp_min_swap | = 192Mb } | ||||||
(_hp_min_swap | > | 96Mb | & | disk[_hp_root_disk].size < 700Mb) | |||
{ | _hp_min_swap | = | 96Mb | } | |||
(_hp_min_swap | > | 68Mb | & | disk[_hp_root_disk].size < 600Mb) | |||
{ | _hp_min_swap | = | 68Mb | } |
Now _hp_sec_swap has been initialized with a set of values that can be chosen from; however, they are not a fixed set of values. The variable _hp_sec_swap can be set using the Additional button because of the way the variable was defined (<variable>={ value1, value2, … }). The variable _hp_sec_swap has its value set from a selection list or by typing it into the corresponding field directly. This can happen because _hp_sec_swap was not defined as an "enum"; if it had been defined as an enum only a value from the list of values it contains could be used.
Although, in this configuration, hp_pri_swap cannot be modified using the Additional button. This value appears directly in the
_hp_pri_swap = { 128Mb, 256Mb, 512Mb, 1024Mb, 1536Mb, 2048Mb, 3072Mb, 4096Mb, 8192Mb, 12288Mb, 16384Mb }
_hp_sec_swap ={ 0Mb, 128Mb, 256Mb, 512Mb, 1024Mb, 1536Mb, 2048Mb, 3072Mb, 4096Mb, 8192Mb, 12288Mb, 16384Mb }
init _hp_sec_swap = 0Mb
_hp_sec_swap help_text "Secondary Swap space (KB)"
The next example gives _hp_disk_layout a value of disk [_hp_root_disk].model. If the value of that expression ever changes, it causes the value of _hp_disk_layout to be re- evaluated.
Doing this makes good sense in the context of this configuration file because if you change the root disk, you may need to
Note:
The models being tested on are not likely ever to run
This is old data being carried along into later releases.
#This next statement is used only to establish an effects relationship
#between the _hp_disk_layout variable and _hp_root_disk. The value is
#overwritten below.
init _hp_disk_layout = disk[_hp_root_disk].model
The following section defines some limitations on
48