diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-02-10 10:06:37 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-02-10 10:06:37 -0600 |
| commit | ea044ec2daf8905177c596b6e2137173d50ec3d3 (patch) | |
| tree | 0008c2b41617f1e4677afa1b6c31a0093cbdaf08 | |
| parent | dc45fbfad6a81456c494222fd16444b98c51b4b9 (diff) | |
| download | invidious-ea044ec2daf8905177c596b6e2137173d50ec3d3.tar.gz invidious-ea044ec2daf8905177c596b6e2137173d50ec3d3.tar.bz2 invidious-ea044ec2daf8905177c596b6e2137173d50ec3d3.zip | |
Fix rank_videos
| -rw-r--r-- | src/helpers.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers.cr b/src/helpers.cr index 27c49c6e..b260ec9b 100644 --- a/src/helpers.cr +++ b/src/helpers.cr @@ -195,7 +195,7 @@ def rank_videos(db, n) published = rs.read(Time) # Exponential decay, older videos tend to rank lower - temperature = wilson_score * Math.exp(-0.02*((Time.now - published).hours)) + temperature = wilson_score * Math.exp(-0.000005*((Time.now - published).total_minutes)) top << {temperature, id} end end |
