anchor.diff:  -module(statser_whisper).
  +
  +-include_lib("eunit/include/eunit.hrl").
  +
   
   -export([read_metadata/1,
            aggregation_type/1,
  
positive.code:             {Archive, LowerArchives} = highest_precision_archive(TimeDiff, Header#metadata.archives),
  
              % seek first data point
              {ok, _Pos} = file:position(IO, {bof, Archive#archive_header.offset}),
  
              % read base data point
              {BaseInterval, _Value} = read_point(IO),
  
              % write data point based on initial data point
              write_point_from_base(IO, Archive, TimeStamp, Value, BaseInterval)
  
              % TODO: update lower archives
      end.
  
negative.code:     end.
  
  
  make_archive_header(Offset, Seconds, Points) ->
      #archive_header{offset=Offset,
                     seconds=Seconds,
                     points=Points,
                     retention=Seconds * Points,
                     size=Points * ?POINT_SIZE}.
  
  
  read_archive_info(IO, Archives) ->
      ByOffset = fun(A, B) -> A#archive_header.offset =< B#archive_header.offset end,
      case read_archive_info(IO, [], Archives) of
  