return 100 * (n * x - sum) / (int64_t)int_sqrt(n * qd);
}
-static long compute_num_played_score(struct afs_info *afsi)
-{
- return -normalized_value(afsi->num_played, statistics.num,
- statistics.num_played_sum, statistics.num_played_qd);
-}
-
-static long compute_last_played_score(struct afs_info *afsi)
-{
- return -normalized_value(afsi->last_played, statistics.num,
- statistics.last_played_sum, statistics.last_played_qd);
-}
-
static long compute_dynamic_score(struct afs_info *afsi)
{
- return compute_num_played_score(afsi) + compute_last_played_score(afsi);
+ return -normalized_value(afsi->num_played, statistics.num,
+ statistics.num_played_sum, statistics.num_played_qd)
+ - normalized_value(afsi->last_played, statistics.num,
+ statistics.last_played_sum, statistics.last_played_qd);
}
static int add_afs_statistics(const struct osl_row *row)