HDFS-16177. Bug fix for Util#receiveFile (#3310)

Reviewed-by: Hui Fei <ferhui@apache.org>
This commit is contained in:
litao 2021-08-19 12:30:38 +08:00 committed by GitHub
parent 0e922aab41
commit 07627ef19e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ public final class Util {
fos.getChannel().force(true); fos.getChannel().force(true);
fos.close(); fos.close();
double writeSec = Math.max(((float) double writeSec = Math.max(((float)
(flushStartTime - Time.monotonicNow())) / 1000.0, 0.001); (Time.monotonicNow() - flushStartTime)) / 1000.0, 0.001);
xferCombined += writeSec; xferCombined += writeSec;
xferStats.append(String xferStats.append(String
.format(" Synchronous (fsync) write to disk of " + .format(" Synchronous (fsync) write to disk of " +