summaryrefslogtreecommitdiff
path: root/src/v1.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2014-10-10 00:04:14 +0200
committerLinus Nordberg <linus@nordberg.se>2014-10-10 00:04:14 +0200
commitf3f35b9a4140830e97b5382bc22fc2e78be7124b (patch)
treeeb986b3bfdc0219aae8eb53b21a8e5b06c47a264 /src/v1.erl
parent25041bc1c1bcd264ae97f8d0506ccec43e75a253 (diff)
Fix bug in get-entries limitation of entries.
Diffstat (limited to 'src/v1.erl')
-rw-r--r--src/v1.erl3
1 files changed, 1 insertions, 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,