Skip to content

Commit 67b58f3

Browse files
committed
rename variables for better understanding
1 parent 46ec204 commit 67b58f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opengrok-web/src/main/webapp/history.jsp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,17 +138,17 @@ include file="/httpheader.jspf"
138138
History hist;
139139
if ((hist = (History) request.getAttribute("history.jsp-hist")) != null) {
140140
141-
int start = cfg.getStartIndex();
141+
int startIndex = cfg.getStartIndex();
142142
int max = cfg.getMaxItems();
143143
long totalHits = hist.getHistoryEntries().size();
144-
long thispage = Math.min(totalHits - start, max);
144+
long thisPageIndex = Math.min(totalHits - startIndex, max);
145145
146146
// We have a lots of results to show: create a slider for them
147-
request.setAttribute("history.jsp-slider", Util.createSlider(start, max, totalHits, request));
147+
request.setAttribute("history.jsp-slider", Util.createSlider(startIndex, max, totalHits, request));
148148
%>
149149
<div id="Masthead">History log of
150150
<%= Util.breadcrumbPath(context + Prefix.XREF_P, path,'/',"",true,cfg.isDir()) %>
151-
(Results <span class="bold"> <%= totalHits != 0 ? start + 1 : 0 %><%= thispage + start
151+
(Results <span class="bold"> <%= totalHits != 0 ? startIndex + 1 : 0 %><%= startIndex + thisPageIndex
152152
%></span> of <span class="bold"><%= totalHits %></span>)
153153
</div>
154154
<%

0 commit comments

Comments
 (0)