Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions webapp/app/controllers/modules2/FirstValuesProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ public String init(String pathStr, ProcessorSetup nextInChain, VisitorInfo visit
super.init(pathStr, nextInChain, visitor, options);
//params = parsePath(pathStr, visitor);
//first values may have no start and end times here
long oneHundredYearsInMillis = 3153600000000L;
long customEnd = System.currentTimeMillis() + oneHundredYearsInMillis;
if(params.getOriginalStart() == null && params.getOriginalEnd() == null) {
long end= System.currentTimeMillis();
long end= customEnd;
Long start = null;
String previousPath = params.getPreviousPath()+"/"+start+"/"+end;
String leftOver = params.getLeftOverPath()+"/"+start+"/"+end;
Expand All @@ -48,7 +50,7 @@ public String init(String pathStr, ProcessorSetup nextInChain, VisitorInfo visit
//in this case, there is only one time in the url which was put at the end parameter :( which is confusing
//and to add to the confusion if reverse=true, end actually means end but reverse=false end means start instead
if(!visitor.isReversed()) {
long end = System.currentTimeMillis();
long end = customEnd;
previousPath = previousPath+"/"+params.getOriginalEnd()+"/"+end;
leftOver = leftOver+"/"+params.getOriginalEnd()+"/"+end;
params = new Path(params.getParams(), previousPath, leftOver, params.getOriginalEnd(), end, visitor.isReversed());
Expand Down