Skip to content
Snippets Groups Projects
Commit 8307cbea authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

When pulling from previous days to fulfill the "last few callers list", insert

Insert (using unshift) to the beginning of the list, rather than append (using
push) to the end of the list.

This fixes issue #761
parent 50b4ff0a
Branches
Tags
1 merge request!455Update branch with changes from master
...@@ -62,7 +62,7 @@ function get(num, days_ago) ...@@ -62,7 +62,7 @@ function get(num, days_ago)
var more = json_lines.get(filename(days_ago), num); var more = json_lines.get(filename(days_ago), num);
if(typeof more !== 'object') if(typeof more !== 'object')
break; break;
result.push.apply(result, more); result.unshift.apply(result, more);
if(num < 0) if(num < 0)
num += more.length; num += more.length;
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment