anchor.diff:  		TS = list_to_integer(TimeStamp),
   		N = list_to_integer(Serial),
   		Events = ocs_log:auth_query(TS, TS, '_', '_', '_', '_'),
  -		JsonObj = usage_aaa_auth(lists:keyfind(N, 2, Events)),
  +		JsonObj = usage_aaa_auth(lists:keyfind(N, 2, Events), []),
   		Body = mochijson:encode(JsonObj),
   		Headers = [{content_type, "application/json"}],
   		{ok, Headers, Body}
  
positive.code: 	end.
  
  %% @hidden
  get_auth_usage([] = _Query) ->
  	{ok, MaxItems} = application:get_env(ocs, rest_page_size),
  	case ocs_log:last(ocs_auth, MaxItems) of
  		{error, _} ->
  			{error, 500};
  		{NewCount, Events} ->
  			JsonObj = usage_aaa_auth(Events),
  			JsonArray = {array, JsonObj},
  			Body = mochijson:encode(JsonArray),
  			ContentRange = "items 1-" ++ integer_to_list(NewCount) ++ "/*",
  
negative.code: 		TS = list_to_integer(TimeStamp),
  		N = list_to_integer(Serial),
  		Events = ocs_log:acct_query(TS, TS, '_', '_', '_'),
  		JsonObj = usage_aaa_acct(lists:keyfind(N, 2, Events), []),
  		Body = mochijson:encode(JsonObj),
  		Headers = [{content_type, "application/json"}],
  		{ok, Headers, Body}
  