Skip to content

Commit

Permalink
tweak traffic decay to be a little slower
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs committed Aug 24, 2012
1 parent aef2cce commit 3e7cdbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion app/views/global/_header.html.erb
@@ -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 %>
Expand Down

0 comments on commit 3e7cdbe

Please sign in to comment.