anchor.diff:  
   
   init(Bucket) ->
  -    TableName = create_table(Bucket),
  +    create_tables(Bucket),
       ns_pubsub:subscribe(ns_stats_event),
  -    {ok, #state{bucket=Bucket, table=TableName}}.
  +    {ok, #state{bucket=Bucket}}.
   
   
   handle_call(unhandled, unhandled, unhandled) ->
  
positive.code: -define(INIT_TIMEOUT, 5000).
  -define(TRUNC_FREQ, 10).
  
  -record(state, {bucket, table, samples_since_truncate = 1}).
  
  -export([start_link/1,
           latest/3, latest/4,
  
negative.code: %%
  %% Internal functions
  %%
  
  archives() ->
      [{minute, 1, 60}, % in seconds
       {hour, 10, 360}, % 10 second intervals
       {day, 24, 360},  % 240 second intervals (4 minutes)
       {week, 7, 360}   % 1680 second intervals (28 minutes)
      ].
  
  
  %% @doc Compute the average of a list of entries.
  %% Timestamp is taken from the first entry.
  