(update_wantmin, update_policy_check, demand_check, upda): Remove the
ability to switch off demand updates by setting update_wantmin to zero. Setting update_demandpolicy to UDDEM_DISABLE does the job. (update_policy_check): Fix lower bound for blitz_time.
This commit is contained in:
parent
198fad473e
commit
7457fef9e7
3 changed files with 6 additions and 16 deletions
|
@ -59,12 +59,12 @@ update_policy_check(void)
|
|||
update_demandpolicy = UDDEM_DEFAULT;
|
||||
if (update_demandpolicy > UDDEM_MAX)
|
||||
update_demandpolicy = UDDEM_DEFAULT;
|
||||
if (update_wantmin < 0)
|
||||
update_wantmin = 0;
|
||||
if (update_wantmin < 1)
|
||||
update_wantmin = 1;
|
||||
if (update_wantmin > MAXNOC)
|
||||
update_wantmin = MAXNOC;
|
||||
if (blitz_time < 0)
|
||||
blitz_time = 0;
|
||||
if (blitz_time < 1)
|
||||
blitz_time = 1;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -153,11 +153,6 @@ demand_check(void)
|
|||
|
||||
time(&cur);
|
||||
|
||||
if (0 == update_wantmin) {
|
||||
logerror("no demand update allowed, wantmin = 0");
|
||||
return 0;
|
||||
}
|
||||
|
||||
demand_update_want(&want, &pop, 0);
|
||||
if (want < update_wantmin) {
|
||||
logerror("no demand update, want = %d, min = %d",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue