tweak traffic decay to be a little slower

This commit is contained in:
joshua stein 2012-08-16 16:26:58 -05:00
parent aef2ccefba
commit 3e7cdbe253
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ class ApplicationController < ActionController::Base
before_filter :authenticate_user
before_filter :increase_traffic_counter
TRAFFIC_DECREMENTER = 0.1
TRAFFIC_DECREMENTER = 0.05
def authenticate_user
if session[:u]

View file

@ -1,7 +1,7 @@
<div id="header">
<div id="headerleft">
<a id="l_holder" style="background-color: #<%= sprintf("%02x%02x%02x",
[ 255, (@traffic * 5).floor + 50.0 ].min, 0, 0) %>;" href="/"></a>
[ 255, (@traffic * 6).floor + 50.0 ].min, 0, 0) %>;" href="/"></a>
<% links = { "/" => "Home", "/newest" => "Newest Stories" } %>
<% if @user %>