Commit 8a660af6 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

fix code formatting

parent b69f8225
Pipeline #13672 passed with stages
in 3 minutes and 3 seconds
......@@ -209,7 +209,9 @@ public class DataServerHandler extends XrootdRequestHandler {
var r = pr.getRequest();
var file = getFile(r);
LOGGER.info("Request {} scheduling time: {}", file, TimeUtils.describe(Duration.between(Instant.now(), pr.getSubmitionTime()).abs()).orElse("-"));
LOGGER.info("Request {} scheduling time: {}", file,
TimeUtils.describe(Duration.between(Instant.now(), pr.getSubmitionTime()).abs())
.orElse("-"));
RandomAccessFile raf;
if (msg.isReadWrite() || msg.isNew() || msg.isDelete()) {
......@@ -329,12 +331,14 @@ public class DataServerHandler extends XrootdRequestHandler {
var r = migrationRequest.request();
var file = getFile(r);
long size = file.length();
long duration = Duration.between(migrationRequest.getCreationTime(), Instant.now()).toMillis();
double bandwidth = (double)size/duration;
long duration = Duration.between(migrationRequest.getCreationTime(), Instant.now())
.toMillis();
double bandwidth = (double) size / duration;
LOGGER.info("Closing file {}. Transferred {} in {}, {}", file, Strings.humanReadableSize(size),
LOGGER.info("Closing file {}. Transferred {} in {}, {}", file,
Strings.humanReadableSize(size),
TimeUtils.describeDuration(duration, TimeUnit.MILLISECONDS),
Strings.describeBandwidth(bandwidth*1000)
Strings.describeBandwidth(bandwidth * 1000)
);
if (r instanceof StageRequest) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment