Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fabrizzio-dotCMS committed Oct 8, 2024
1 parent dc178fb commit d65bec5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private void doReadLargeFile(DotTempFile dotTempFile, int nLines, final Job job)
Logger.info(this.getClass(), line);
delay();
}
final float progressPercentage = ((float) readCount / totalCount) * 100;
final float progressPercentage = ((float) readCount / totalCount);
progressTracker.ifPresent(tracker -> tracker.updateProgress(progressPercentage));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ private void handleUploadIfPresent(final JobParams form, Map<String, Object> par
} catch (Exception e) {
Logger.error(this.getClass(), "Error saving temp file", e);
}
} else {
Logger.info(this.getClass(), "No file was uploaded.");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ public EventOutput monitorJob(@Context HttpServletRequest request, @PathParam("j
.data(String.class, "404")
.build();
eventOutput.write(event);
eventOutput.close();
} catch (IOException e) {
Logger.error(this, "Error closing SSE connection", e);
}
Expand Down

This file was deleted.

0 comments on commit d65bec5

Please sign in to comment.