From f3f35b9a4140830e97b5382bc22fc2e78be7124b Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 10 Oct 2014 00:04:14 +0200 Subject: Fix bug in get-entries limitation of entries. --- src/v1.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/v1.erl b/src/v1.erl index c1db2c3..ba5c456 100644 --- a/src/v1.erl +++ b/src/v1.erl @@ -103,8 +103,7 @@ {End, _} = string:to_integer(EndInput), case lists:member(error, [Start, End]) of true -> html("get-entries: bad input:", [Start, End]); - false -> catlfish:entries(Start, - min(max(End, Start), Start + 999)) + false -> catlfish:entries(Start, min(End, Start + 999)) end; _ -> html("get-entries: bad input:", Input) end, -- cgit v1.1