
Chapter 4 Releasing 123
By default, the age of a file is the more recent of the file’s three ages.
In some cases, a simple age derived from the most recently accessed time, modified
time, and residence-changed time is preferred. In other cases, you might want the
access age of a file to take precedence over the modification age. You can use
directives to specify that a weighted age priority be used when calculating the
release priority for a file.
CODE EXAMPLE 4-1 shows the formats of the age priority directive.
■ The weight_age directive specifies that a file’s default age (the smaller of the
file’s access, modification, or residence age) be given a weighting factor. For float,
specify a floating-point number from 0.0 through 1.0. By default, float = 1.0.
This directive cannot be specified in conjunction with the weight_age_access,
weight_age_modification,orweight_age_residence directives.
■ The weight_age_access, weight_age_modification, and
weight_age_residence directives specify that a file’s age be determined based
on one, two, or three of these possible ages. For float, specify a floating-point
number from 0.0 through 1.0. By default, float = 1.0.
These directives cannot be specified in conjunction with the weight_age
directive.
If the weight_age_access, weight_age_modification, and
weight_age_residence directives are all used, the age-related priority for a file
is calculated as follows:
1. File age data is gathered for each file’s possible age.
2. File age data is multiplied by the weighting factors specified in the
releaser.cmd file.
3. The products of the multiplication are added together, as shown in the following
equation.
CODE EXAMPLE 4-1 Age Priority Directive Formats
weight_age = float
weight_age_access = float
weight_age_modification = float
weight_age_residence = float
file access age * weight_age_access
+ file modification age * weight_age_modification
+ file residency age * weight_age_residence
_________________________________________________
= age_related_priority
Comentários a estes Manuais