diff --git a/docs/stats.php b/docs/stats.php index 990e872..34ea498 100755 --- a/docs/stats.php +++ b/docs/stats.php @@ -18,9 +18,7 @@ $pr[$usern['username']] = 1; } - $dist = 1; - - for ($i = 0; $i < 25; $i++) { + for ($i = 0; $i < 50; $i++) { foreach ($result as $usern) { $theuser = $usern['username']; $stmt = $db->prepare("SELECT * FROM main.follow WHERE username = ?"); @@ -42,7 +40,7 @@ } } - $dist = ($dist * 0.8); + $dist = 1 - ($i / 50); $new_sum = array_sum($pr); foreach ($result as $usern) {