anchor.diff:      end.
   
   
  +consolidate(Series, ValuesPP) when ValuesPP =< 1 -> Series;
   consolidate(Series, ValuesPP) ->
  -    consolidate(Series, ValuesPP, average).
  -
  -consolidate(Series, ValuesPP, _Aggregate) when ValuesPP =< 1 -> Series;
  -consolidate(Series, ValuesPP, Aggregate) ->
  +    Aggregate = Series#series.aggregation,
       Values = consolidate_values(Series#series.values, ValuesPP, Aggregate),
       Step = Series#series.step * ValuesPP,
       Series#series{values=Values,step=Step}.
  
positive.code:     Series = lists:flatten(SeriesLst),
      {_Start, _End, Step} = normalize_stats(Series),
      % TODO: properly handle start/stop
      lists:map(fun(S) -> consolidate(S, Step div S#series.step) end, Series).
  
  
  
negative.code:     [?_assertEqual(Expected, consolidate(Series, 2)),
       ?_assertEqual(pseudo_series([1.5], 30), consolidate(pseudo_series([1, null, 2]), 3)),
       ?_assertEqual(pseudo_series([1.5, 1.0], 30), consolidate(pseudo_series([1, null, 2, null, null, 1]), 3)),
       ?_assertEqual(pseudo_series([], 20), consolidate(pseudo_series([]), 2)),
       ?_assertEqual(pseudo_series([2,2,2], 20, sum), consolidate(pseudo_series([1,1,1,1,1,1], 10, sum), 2))
      ].
  
  normalize_test_() ->
  