diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-04-24 23:38:52 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-04-24 23:39:11 -0400 |
commit | c2fb81bf1668e3c69df7d533c32a580742d709ab (patch) | |
tree | 53fe94b3e10704eccbdd639e52a1478d307ce3fa | |
parent | 0b9bf589a2762267fedf7321ba03968ebc3abfcd (diff) | |
download | bfs-c2fb81bf1668e3c69df7d533c32a580742d709ab.tar.xz |
parse: Add some missing costs/probabilities
Previously we weren't re-ordering -type in front of -newerXY
-rw-r--r-- | parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1658,6 +1658,8 @@ static struct expr *parse_newerxy(struct parser_state *state, int arg1, int arg2 expr->reftime = *reftime; } + expr->cost = STAT_COST; + return expr; fail: @@ -1672,6 +1674,7 @@ static struct expr *parse_nogroup(struct parser_state *state, int arg1, int arg2 struct expr *expr = parse_nullary_test(state, eval_nogroup); if (expr) { expr->cost = 9000.0; + expr->probability = 0.01; expr->ephemeral_fds = 1; } return expr; @@ -1703,6 +1706,7 @@ static struct expr *parse_nouser(struct parser_state *state, int arg1, int arg2) struct expr *expr = parse_nullary_test(state, eval_nouser); if (expr) { expr->cost = 9000.0; + expr->probability = 0.01; expr->ephemeral_fds = 1; } return expr; |