Function hot_ranking_algorithm::rank
[−]
[src]
pub fn rank(
upvotes: &i32,
downvotes: &i32,
timestamp: DateTime<Utc>,
epoch: DateTime<Utc>
) -> i32
Calculate the relevancy of an item based on upvotes, downvotes, a current timestamp and the epoch at which the program is first run (e.g. no value can be lower than that).