Skip to content

Commit

Permalink
update lnow for tcr request
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-du-car committed May 9, 2024
1 parent 0af20b9 commit 6277c0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cc/ws/CtrlTiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ public void init(ServletConfig oConfig)
protected void doGet(HttpServletRequest oRequest, HttpServletResponse oResponse)
throws ServletException, IOException
{
long lNow = System.currentTimeMillis();
TimeSource timeSrc = (TimeSource) this.getServletContext().getAttribute(TimeSource.class.getName());
long lNow = timeSrc.currentTimeMillis();
String[] sUriParts = oRequest.getRequestURI().split("/");
int nZ = Integer.parseInt(sUriParts[sUriParts.length - 3]);
int nX = Integer.parseInt(sUriParts[sUriParts.length - 2]);
Expand Down

0 comments on commit 6277c0b

Please sign in to comment.